At 08:48 25.07.00 -0700, you wrote:
>Hi,
>
>i have a j3d/swing app and i utilize the ColorChooser from swing
>to control the color of shapes in a J3D scene. is there some sort
>of mapping between the two? I utilize java.awt.Color and
>javax.vecmath.Color3f.. what i believe should be a blue in Color
>is a light blue in Color3f... if it is a light color (light red, light blue,
>etc)
>in java.awt.Color, it translates to white in javax.vecmath.Color3f..
>
>just curious if anyone has any info in what i'm doing wrong because
>it's driving me nuts!
Drove me nuts too. I think it would have been nice to unify java.awt.Color
with Color3d, Color3f, etc. I'm not sure if all these high-precision colors
are really needed when most output devices I'm aware of use around 8
bits per color. But unless you're confusing the integer parameters to
the Color constructor (0..255) with the float parameters (0..1), that's
not where your problem lies, I think.
The problem is lighting. If you have lights in your scene and they hit
your objects and your objects are at all reflective, then the scene light
will lighten their colors. Shine enough white light at a blue surface and
it will seem light blue, maybe even white. Especially when the light source
comes from the normal to the surface.
If you want to make your life very simple, give your objects only emissive
colors and use no lights. All objects will shine with exactly the color you
specify, consistently at every angle. I must admit this makes your scene
a bit boring, though.
If you don't want to do without the shading effects of direct/indirect/no
light etc., then the other thing you could try is to dim the lights. Rather
than using 1f,1f,1f for the light color, use a shade of gray.
If all this fails, get a second opinion from someone who knows what they're
doing :)
Good luck,
-Carl-
===========================================================================
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".