Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL error on Example #69

Open
Deepankar1993 opened this issue Jun 25, 2017 · 10 comments · May be fixed by #80
Open

OpenGL error on Example #69

Deepankar1993 opened this issue Jun 25, 2017 · 10 comments · May be fixed by #80

Comments

@Deepankar1993
Copy link

When I try to run the example is throws the error below

System.EntryPointNotFoundException: 'Unable to find an entry point named 'glGenBuffers' in DLL 'opengl32.dll'.'

@Robmaister
Copy link
Owner

Are you running this on a relatively new system? Do you have a graphics card installed?

I haven't updated OpenTK in a bit, I know some older versions have issues actually loading drivers and instead try to use the ancient OpenGL implementation that Windows ships with, which could be the problem here. To diagnose, can you please add this line into ExampleWindow.cs, line 126 (between base.OnLoad(e) and InitializeOpenGL() in OnLoad):

Console.WriteLine(GL.GetString(StringName.Vendor) + " | " + GL.GetString(StringName.Version) + " | " + GL.GetString(StringName.Renderer));

And copy/paste the results here? If running in Visual Studio, the result should be visible in the Output view. I would recommend putting a breakpoint on InitializeOpenGL as well. It should look something like this:

NVIDIA Corporation | 4.5.0 NVIDIA 382.53 | GeForce GTX 970/PCIe/SSE2

I would also recommend making sure that your graphics card (or integrated graphics) drivers are up-to-date.

@Azathoth80
Copy link

Azathoth80 commented Jun 26, 2017

Just solved this issue by upgrading to the newest OpenTK package (2.0.0).

I am using:
NVIDIA Corporation | 4.5.0 NVIDIA 378.49 | GeForce GTX 680/PCIe/SSE2

@Deepankar1993
Copy link
Author

Deepankar1993 commented Jun 26, 2017

I am getting this
Microsoft Corporation | 1.1.0 | GDI Generic

I have updated openTK package to 2.0.0(Stable)
after that
Line 108 ::
OpenTK.Graphics.GraphicsContextException: 'Failed to make context 65536 current. Error: 6'

@Robmaister
Copy link
Owner

Do you still get the same string out from OpenTK 2.0.0? What graphics card do you actually have/is there actually an implementation besides the GDI Generic one? What OS are you running?

I would also try 3.0.0-pre, this is looking more like an OpenTK issue than a SharpNav issue right now

@Deepankar1993
Copy link
Author

Deepankar1993 commented Jun 26, 2017

Microsoft Corporation | 1.1.0 | GDI Generic
this was when the OpenTK was 1.1(something )

after update to 2.0.0(Stable)(via Nuget Package Manager)
Edit This error still there even in 3.0.0-pre
OpenTK.Graphics.GraphicsContextException: 'Failed to make context 65536 current. Error: 6'
on line 108(ExampleWindow.cs)

I have
GTX 1080
Driver 382.53
Window 10 (latest version)

@Deepankar1993
Copy link
Author

Ok it Solved
I Just deleted all the files in the SharpNav folder and re-extracted it
and Updated it to OpenTk 2.0.0(Stable)
now all working

@Robmaister
Copy link
Owner

Awesome! I'll bump up the nuget version to 2.0.0 in a bit and then close this issue.

@Deepankar1993
Copy link
Author

before you close are there any place like discord or something where we can question about using it for new people like me

@Robmaister
Copy link
Owner

Closest thing would be a mailing list I set up a while ago, which hasn't really caught on: https://groups.google.com/forum/#!forum/sharpnav

I'm really stretched thin as far as how much time I have to maintain + develop SharpNav, but it's a port of Recast, so pretty much everything you read online about Recast can be applied to SharpNav.

@Deepankar1993
Copy link
Author

Thanks

erictuvesson added a commit to erictuvesson/SharpNav that referenced this issue Sep 8, 2019
@erictuvesson erictuvesson linked a pull request Sep 8, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants