Re: [osg-users] Camera and light problem

2008-03-10 Thread Vincent Bourdier
Hi Jon, If your light is in the model at (0,0,0) it is normal, because in the graph, the position is always relative (depends on the parent node) (if you let it by default). try something like : -ROOT ---lightsource ---tranform --geode In this case light source will be in relative

Re: [osg-users] Camera and light problem

2008-03-06 Thread Vincent Bourdier
Hi Jon If you add your transform to the camera, it is normal that the light follow the camera.. If you want to keep the light at the same position, you have to attach it near the root node, and attach the rest of the scene a lower levels than it. Each child inherit from its parents, so if you