Understanding Lights??

All

I am trying to reconcile how lights work within Xith and differences twixt Xith and Java3D.

I know that lights are specific to their main and child branchgroups…which is different than Java3d

Looking at the code I don’t see how InfluenceBounds, Bounds are handled and effects on attenuated lights.

The XithSphereMotionLightingTest doesn’t apparently set any bounds and yet the lighting effects are there. Are InfluenceBounds used within xith?? ???

I want to setup a torch or flashlight to follow the view as it moves, does BoundLeaf work with Xith?? Is this the best way to accomplish this. If I remember a PointLight is not moved along with a transform group.

o Should I manually reposition a light and bounds and influencebounds

o Use a boundingleaf to hold bounds and influencebounds and manually reposition a PointLight

o Any other ideas??

Hi,

Current implementation of lights does not take care of InfluenceBounds.

Only nodes under the parent group of the light are affected by it.

The MAIN diffrence is that the lights are NOT moving with the transform groups, so you have to adjust directions/positions manually (light position/direction are in VWorld coordinates).

Bounds and InfluenceBounds are not used in Xith3D currently.

Yuri

mucho thanx!!! :stuck_out_tongue: