Jump to content
  • Advertisement
Sign in to follow this  
glportal

Black Screen on some machines

This topic is 952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

we are getting reports from Radeon users that they only get a black screen when they run the game

https://github.com/GlPortal/glPortal

 

This has not been reported for other hardware than the Radeon so far.

 

I wonder: How do I even start debugging anything like this? We have some error logs when shader compilation errors occur and GL version does not match but all of them look fine.

 

Any help is welcome.

Share this post


Link to post
Share on other sites
Advertisement

Thank you. I did install the reference compiler and ran it on all the shaders but glslangValidator did not throw an error. This is how I called the compiler for example "glslangValidator data/shaders/unshaded.frag". I also checked the terminal output of GlPortal again. OpenGL-Version is 44 and no error when compiling the shaders with the game.

Share this post


Link to post
Share on other sites

I can assure you that diagnosing AMD driver issues remotely from an NVidia setup is a really terrible idea. 

That is why I am using a Radeon to diagnose the issue. I can reproduce the Issue on a machine here. If it is an issue with the shaders then Radeon does a good job of hiding it and glslangValidator, too. Since the shaders compile on both without complaint.

Share this post


Link to post
Share on other sites

We had some issues on Radeon, which were caused by performing textures updates on a different thread than the rendering (thus having the need to share GL context).

 

Tbh I hardly understand what it says, but it may point you in the right direction.

Share this post


Link to post
Share on other sites

OpenGL-Version is 44 and no error when compiling the shaders with the game.

 

So are you saying that your OpenGL-Version that your game uses is 4.4, or that the reference compiler used 4.4? In the former case, 4.4 is still rather quite new (Juli 2013) and it wouldn't suprise me if a lot of hardware didn't support it. You said that there have only been reports from Radeon users so far, but since I do not know how many reports you got you may consider it this is merely coincidence and may correlate with ie. old hardware. Are you checking for whether the OpenGL-Version you are using is supported when starting the game? I'm pretty sure unless checked explicitely you will just get a black screen and no error/crash.

Edited by Juliean

Share this post


Link to post
Share on other sites
Add sanity checks to the final stage of your shader(s).
If +InF, return red, if -InF, return green, if NaN return blue.
If negative, return yellow.

Find out which case it is and then look carefully for divisions by zero or almost-zero, etc.
Replace parts of your lighting equations with sane constants rather than throughput data. Do this starting close to the end of your shaders and progressively moving further towards the start of your shaders until the screen turns black again.


L. Spiro

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!