-
Notifications
You must be signed in to change notification settings - Fork 71
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
Compile fine but Not able to run demos #15
Comments
'System.BadImageFormatException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'TestBenchCommon, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. |
GL Version = 4.2.0 - Build 10.18.10.3383 -- ss4_fragment.glsl -- -- ss4_geometry.glsl --
** Shader Compile Failed ** GL Error: InvalidValue |
What OS/hardware is this on?
|
windows 8.1 on laptop which is less than 1 year old. It would be great to be able to just download and unzip the file, compile and run to see how the demo look without further debugging. |
It's not hardware issues..it is hardware compatibility issues with our
shaders.
GLSL compilers are drastically different in different drivers. We develop
on nvidia, which is very "forgiving" of mistakes. Intel and AMD are less
forgiving.
Bottom line.. We need to know what hardware you are running to debug our
shaders.
|
Nvidia GeForce GTX 780M I tested I removed this line
in SSMainShaderProgram.cs The WavefrontOBJViewer program works!!! SSShaderProgram.cs |
My NVidia drivers don't throw those shader errors. Does your laptop have dual-graphics? Those errors look more like the kind of things I see out of intel drivers (which are less forgiving) Namone/SimpleScene is just an old version before we added lots of other features. You can try to make our latest tree work by forcing the geometry shader off... In SSMainShaderProgram.cs, SSMainShaderProgram, change this line: if (GL.GetString(StringName.Extensions).ToLower().Contains("gl_ext_gpu_shader4")) { to this: if (false && GL.GetString(StringName.Extensions).ToLower().Contains("gl_ext_gpu_shader4")) { ... We should change this code so if the SS4 shader compile fails it just falls back to the SS1 shader automatically. |
Can you try the latest ( https://github.com/jeske/SimpleScene ) ? I put some code into the shader load to automatically fall back to the simpler SS1 shader if the SS4 shader load fails. I'd like to know if this fixes your startup problem. NOTE: this isn't really the best "fix" because we also want the SS4 shader to load on your hardware, but I need to get access to a setup that causes the problem to fix this. |
Does your laptop have dual-graphics? Perhaps this could be the common issue. Perhaps you could notify new user to take this into consideration when running this stimulating project |
Dave - can you try the latest version and let us know if it works? |
I still think it is important that people know https://github.com/Namone/SimpleScene (a version for beginner to immediately test OpenTK scene graph). |
open in visual studio. Compile all. Fine.
GDiviaAGGTest works fine
But all TestBench fails at this stage
=> throw new Exception
The text was updated successfully, but these errors were encountered: