I have great problems to make my FPS terrain. I want to add light and shaders in it, but i don´t know how to handle with that. Please don`t say, use the search funktion or make the tutorials. I did both, but didn`t find answers to my questions.
My terrain is ready, i load different .3ds files with .bmp textures and i use the metatriangleselector for collision detection. I load it with OpenGL.
Know i hope you can explain me how to use light and shaders.
At the moment i load all objekts with
Code: Select all
node->setMaterialFlag(EMF_LIGHTING, true);
http://www.danielpatton.com/afecelis/Ir ... test01.jpg
I think i must add an ambient light, an also a static light to make the shadows. But i don´t know where to put the code for this, and i don`t know what i must set to my nodes, for the shadow. ->setMatrialFlag(?????)
Maybe afecelis or somebody else can give me a crash course for dummys in useing light and shaders.
THX for replys!
And excuse my bad english!