Thanks for your this solution but changing bounding sphere size change
things randomly.
Setting size to 10d or Double.MAX_VALUE changes same behavior.
I'll do with it. I changed gridded3DSet with colored LineStripArray, that
solved most of my "light problems".
For shapes, I used emissive color to simulate ambient Light.
I still use Visad for scales, animation and 2D renderings.
Regards,
Laurent BEIGBEDER
GFI Informatique
Toulouse - FRANCE
Bill Hibbard <billh@xxxxxxxxxxxxx>@unidata.ucar.edu le 02/09/2005 18:42:33
Veuillez répondre à owner-visad@xxxxxxxxxxxxxxxx
Envoyé par : owner-visad@xxxxxxxxxxxxxxxx
Pour : Laurent BEIGBEDER <lbeigbed@xxxxxx>
cc : visad@xxxxxxxxxxxxxxxx
Objet : Re: Réf. : Re: Ambiant Light going off on animation
Hi Laurent,
VisAD uses:
BoundingSphere(new Point3d(0.0,0.0,0.0), 2000000.0);
Perhaps this is too small for your application. If you
are changing the BoundingSphere, please try changing it
to Double.MAX_VALUE. Does this make the problem go
away? If so, we might make this the default in VisAD.
We might try Double.POSITIVE_INFINITY, but I'd worry
that some Java3D implementations might not like that.
Thank you,
Bill
On Fri, 2 Sep 2005, Laurent BEIGBEDER wrote:
> It seems to be strange:
>
> If the view is far from a shape, the ambient light reflexion is OK.
> If the view is near the shape(zoom), the ambiant light is shown only when
> another shape approaches.
> Changing the boundingSphere radius change this behavior
> I tried directx and opengl runtime, it did not change anything.
>
> It might be a weird behavior like u said!