Jump to content
  • Advertisement
Sign in to follow this  
QQemka

Diagnosing problems in shaders

This topic is 752 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. After implementing a lot of stuff i moved to skybox. And so i went through the tutorial and... there is nothing rendered on the sky. All my textures, axes i draw are properly visible. What should i do? There are so many components in the pipeline for skybox that the mistake can be everywhere. How should i diagnose the problem?

Greetz

 

Edit: Oh i noticed that i messed up the move constructor.

 

The question about diagnosing shaders is still actual and buggs me a lot :)

Edited by QQemka

Share this post


Link to post
Share on other sites
Advertisement

I'm no expert at debugging shaders, there are tools to help you do so but I haven't ventured into trying them yet. What I do when I have to debug a shader is firstly to make it as simple as possible (work on the very barebones, first input) and to output things as colors so I can see what's going on. For example, if I think maybe a value isn't being set correctly I might put in my shader if(value==expected) then green, else red. It's really not great but it does work.

Share this post


Link to post
Share on other sites

You can try using pixwin, but be careful with it.

 

It is very good at meshes and transforms, but it emulates the GPU so shaders that run correctly in pixwin may not run correctly in real life.

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!