Hi,

If you want your light to appear like a sun, you could try using an
AmbientLight along with the DirectionalLight. The DirectionalLight would be
act like the sun (a disk in the sky) but the AmbientLight would provide
lighting all around.

Bob


>From: Tina Manoharan Valappil <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] Sunlight effect !!
>Date: Mon, 21 May 2001 12:06:40 +0100
>
>         Hi,
>
> > >From the description of the problem, it sounds like you simply want
>your
> > light to have a bigger range.  You just need to make the radius of the
> > bounding sphere bigger:
>
>         # My radius is set to 100.0 but still I feel that my objects are
>really dark when I go say 10.0 or 20.0 units away from them.
>
>         # By "sunlight" I actually wanted the scene to be lit up like it
>is usually during the day. No matter how far I am if the object is visible
>there is enough sunlight on it isnt it? Only when there is shadow on it,
>it appears darker. But now in my scene if I go a little distance away no
>matter even if there is no shadow on it, the objects r really dark. Is it
>possible to really have a bright scene without having to many lights,
>which actually blurs the objects?
>
> > DirectionalLight light = new DirectionalLight(true,new Color3f(1,1,1));
> > light.setInfluencingBounds(new BoundingSphere(new Point3d(5.0,5.0,-5.0),
> > 100.0));
> >
> > Here, I set the light-color to white, the "true" parameter means that
>the
> > light is on, and I set up my bounding sphere to be centered at point
> > (5,5,-5) and have a radius of 100.  Note, even a smaller radius may be
>good
> > for your purposes.  Just play with it a little.
>
>         # Thank you very much for helping me. But as u said I will play
>with it a little and see if I can improve it.
>
>         Tina
>
>===========================================================================
>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".

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
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".

Reply via email to