[Plib-devel] ssgaFire
Brought to you by:
sjbaker
From: Bram S. <br...@sa...> - 2006-09-22 17:33:04
|
Hi folks, I'm using a ssgaFire object. I copied the code from examples/src/ssg/water/water.cxx In the water demo, the scene looks ok. In my own code, the entire scene turns dark, as soon as a ssgaFire object is created. It is as if the lights are disabled. Are there any pitfalls that I should look out for when using ssgaFire? I have this for my lighting: ssgLight *light = ssgGetLight(0); sgVec3 p; tank->GetPos(p); light->setPosition(p[0],p[1],p[2]+5.0); light->setColour(GL_DIFFUSE, 3,3,3); It is a local light at the player's position, which works just fine if there is no ssgaFire in the ssg tree. The scene drawing is performed simply by using ssgCullAndDraw(scene); Thanks in adv, Bram |