I wrote code for mesh and light but when i'm trying to see this things they don't show. On the screen i see only black color nothing else
My code is here https://github.com/DarkEngineer/Crion-World
Jump to content
GameDev.net Posting Guidelines (please read before posting)
For Beginners Forum FAQs (please read before posting)
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 02 April 2013 - 10:54 AM
I'm assuming that you had your scene and meshes and textures and all that stuff working and displayed on the screen before you tried to insert a light - if this is the case did you make sure that your shaders compiled? I noticed that you used two different extensions for your lighting shader and regular shaders - you have .glsl and .fragmentShader and .vertexShader
Other than that your lighting verttex and fragment shaders look okay to me as long as your setting the uniforms correctly in your code and they are compiling and linking together they should work. I've been wrong before though.
Posted 02 April 2013 - 02:33 PM
maybe verify that the mesh draws as intended without using lighting (fullbright);
maybe verify (if applicable) that things like vertex normals are correct;
maybe try to verify if any calculations should behave as intended;
Current Status / Downloads: http://cr88192.mooo.com:8080/wiki/index.php/BGB_Current_Status
YouTube Channel: http://www.youtube.com/user/BGBTech
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.