[JAVA3D] How to set light on Camera Direction ?

2005-06-02 Thread Saeed Ansari
Hi all, I want to set the DirectionalLight on camera direction. How can I do this ?     Regards, Saeed Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out! === To unsubscribe, se

Re: [JAVA3D] How to set light on Camera Direction ?

2005-06-02 Thread Justin Couch
Saeed Ansari wrote: I want to set the DirectionalLight on camera direction. How can I do this ? The easiest way is to just have the light sitting under the same TransformGroup as the camera and have it's direction set to 0 0 1. That way, wherever the camera moves, so does the light. -- Justin

[JAVA3D] Problem when changing BranchGroup's children

2005-06-02 Thread Saeed Ansari
Hello, I want to change the attributes of a BranchGroup's children. I have set the capability of the BranchGroup :  BranchGroup bgRoot = new BranchGroup();  bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_READ); bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);   and when I want to read the c