OpenTKTutorialContent icon indicating copy to clipboard operation
OpenTKTutorialContent copied to clipboard

In macosx, example 4 runs but no object

Open simonthalen opened this issue 6 years ago • 8 comments

Hello and thank you for a great tutorial series!

Ive used your tutorials successfully on windows but was trying to move over to mac for practical reasons. Tutorial 1 runs fine out of the box in VS 2017 on macosx. Tutorial 2-4 which are the ones im the most interested in builds and runs but there are no objects. See attached image. Any ideas on how to make the examples work? Has anyone else had any experience running the examples on mac?

screen shot 2019-01-29 at 23 31 00

simonthalen avatar Jan 29 '19 22:01 simonthalen

According to OpenGL Extensions Viewer my version of opengl should support 3.3. So idk what gives

simonthalen avatar Jan 29 '19 23:01 simonthalen

I changed the constructor to this: public Game() : base(512,512, new GraphicsMode(32,24,0,4),"...", GameWindowFlags.Default, DisplayDevice.Default, 3, 3, GraphicsContextFlags.ForwardCompatible)

It removes the error in the console but still nothing

simonthalen avatar Jan 29 '19 23:01 simonthalen

Thanks, I'll be taking a look into it as soon as I can. Which model Mac are you on?

neokabuto avatar Feb 04 '19 04:02 neokabuto

Oh nice I wasnt sure you would reply. In the meantime I have been looking for examples of OpenTK used on Mac apart from immediate mode drawing but have found nothing. Here is a screenshot of my specs.

screen shot 2019-02-04 at 10 12 20

simonthalen avatar Feb 04 '19 09:02 simonthalen

Can you test if changing the version in the shaders to 130 works for Tutorial 4 on your computer?

neokabuto avatar Mar 05 '19 23:03 neokabuto

Sadly it doesnt, it still cant compile the shaders.

screen shot 2019-03-06 at 10 11 20

simonthalen avatar Mar 06 '19 09:03 simonthalen

Not sure if this is info you need but GL.GetString(StringName.Version) returns "4.1 INTEL-10.36.23" and GL.GetString(StringName.ShadingLanguageVersion) returns "4.10"

simonthalen avatar Mar 06 '19 09:03 simonthalen

Another note: It seems that GL.GetShaderInfoLog(address) and GL.GetProgramInfoLog(pgmID) doesnt return anything at all.

simonthalen avatar Mar 06 '19 09:03 simonthalen