Sajjadul Islam wrote:
> Hello,
> 
> If i lit any object using the default light, the light remains at the 
> same position even if pick the object and rotate it in mouse event.
> 
> But if i disable that default light and create one of my own and then 
> pick  the object and rotate it then the light also moves with rotation.
> 
> 
> What could be the problem here and how can i keep  the light fixed as in 
> the case of the default light?

a light's location in the scene is determined by its beacon's coordinate 
system, or if no beacon is set the coordinate system of the lights 
position in the scene graph is being used.
To get a light that has a fixed location in the scene, use the scene's 
root as beacon, or to have the light move with some object, either put 
it between the transform and the object or make use the transform as the 
  light's beacon.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to