Hi
I’m building an educational video game, my videjuego should have very few requirements. I have problems with the lighting, the models and textures, not that kind of lighting choices. Here I give you some pictures and relevant code. I hope you help me.
1 Problem:
img716.imageshack.us/img716/4083/49777026.png
They appreciate the details but stained
code:
Light = AmbientLight('Light')
Light.setColor(Vec4(0.6, 0.5, 0.5, 1))
LightR = render.attachNewNode(Light)
Light2 = DirectionalLight('LightD')
Light2.setColor(Vec4(0.7, 0.7, 0.7, 1))
Light2.setDirection(Vec3(1, 1, -1))
Light2S = render.attachNewNode(Light2)
render.clearLight()
render.setLight(LightR)
render.setLight(Light2S)
2 Problem:
img545.imageshack.us/img545/7937/48361201.png
They appreciate the details in a more realistic but the stains continue.
code: Per-Pixel Lighting
render.setShaderAuto()
Light = AmbientLight('Light')
Light.setColor(Vec4(0.6, 0.5, 0.5, 1))
LightR = render.attachNewNode(Light)
Light2 = DirectionalLight('LightD')
Light2.setColor(Vec4(0.7, 0.7, 0.7, 1))
Light2.setDirection(Vec3(1, 1, -1))
Light2S = render.attachNewNode(Light2)
render.clearLight()
render.setLight(LightR)
render.setLight(Light2S)
3 Problem:
Lighting by default:
img577.imageshack.us/img577/3571/25241192.png
No details. The lighting seems not to create spots on the texture.
*how to avoid stains on my model?
*My model is modeled by quads and very few tris.
Thanks for your attention and help.