Raul,
I was using the directX version of java3d and got the same results
as you did. Try using the openGL version. When I switched over, it worked
immediately.
Shaun
----- Original Message -----
From: "Raul Rios" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 28, 2001 5:22 AM
Subject: [JAVA3D] FOG
I want to add fog to may scene, and I don�t know how to do it.
This is my code:
ExponentialFog fog = new ExponentialFog(150, 150, 180, 0.25f);
fog.setInfluencingBoundingLeaf(myBoundingLeaf);
fog.addScope(mySceneGraph.getRoot());
myCanvas3d.getGraphicsContext3D().setFog(fog);
With or without this code, the scene appears in the same way,
without fog in nowhere.
Is it necessary to add the fog leaf node to the scene graph ?
I have tried it but I still can�t see the fog.
Thanks.
=========================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".