Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Ambiant Light going off on animation

Hi,

Bill Hibbard wrote:

Hi Laurent,

The AmbientLight is constructed in the DisplayRenderer
and added as a child of the root BranchGroup of the
scene graph. There is no code in VisAD to delete or
modify the AmbientLight. It is possible for appliation
code to call the getRoot() method to get a reference
to the root, then to delete or modify the AmbientLight.
I confess that I did a call to getRoot(), as I was experimenting with adding other Java3D object types to the display. What I found annoying is that the light only changed after clicked on the display. So the problem must be with my code.

Thanks for the answer.

Cheers,

Ugo

I sincerely doubt that your code or Ugo's does this, so
this may be some weird behavior of Java3D in Applets.
I can't see any connection to mouse clicks. If you can
come up with any more evidence about what is going on,
I will look into it.

Cheers,
Bill

On Fri, 2 Sep 2005, Laurent BEIGBEDER wrote:

I have a strange problem on my 3D applet: After a few animation step,
ambiant lights are disabled.

Does anyone had this problem too and know how to resolve it?



--
l a t / l o n  GmbH
Aennchenstrasse 19           53177 Bonn, Germany
phone ++49 +228 184960       fax ++49 +228 1849629
http://www.lat-lon.de        http://www.deegree.org


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690