Lights in Java3D are specified by Color.  So to adjust the brightness
you scale the color by the intensity.  In VRML this is specified as two
seperate items, color and intensity[0..1].  so the following code is
used to adjust the brightness:

lightColor.x = vfColor[0] * vfIntensity;
lightColor.y = vfColor[1] * vfIntensity;
lightColor.z = vfColor[2] * vfIntensity;
implDirLight = new DirectionalLight(vfOn, lightColor, vfDirection);

> PLUG wrote:
>
> Hi.
> Anyone can prompt, how adjust brightness of light (point, direct)?
>
>
> 
>--------------------------------------------------------------------------------------------
> [EMAIL PROTECTED]
>
> ICQ: #75190013

--
Alan Hudson
President: Yumetech, Inc.                      http://www.yumetech.com/
Web3D Open Source Chair        http://www.web3d.org/TaskGroups/source/

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