There's nothing like replying to yourself...
Sometimes I think I writing out the problem post, is enough to
make me see the light. Of course the light doesn't come on until
after I hit 'send'
I need to have Normals on the geometry right? duh.
That's a bummer too, because none of this geometry is
guaranteed to be wound correctly.
Oh well, back to the drawing board.
-Kyle
Kyle McDonald wrote:
> Hi.
>
> I'm trying to get lighting working.. and I'm obviously doing something
> wrong.
>
> I have many Shape3Ds.
>
> They all have an Appearance
>
> The Appearance has ColoringAttributes, TransparencyAttributes
> (if needed,) a Material, and Rendering Attributes.
>
> The Material has the Shininess, ColorTarget, AmbientColor,
> DiffuseColor, and LightingEnabled.
>
> The RenderingAttributes object was left with the default
> settings.
>
> My Scenegraph has both an Ambient and a Directional light.
> with 0.6 and 0.8 white values respectively.
>
> My scene is still drawn like it was when none of these existed.
> My scene is made up of many polygons many of which share the same
> color. Before (well still 'cause it's not working) adding this
> stuff, it was hard to make out most of the edges of the objects
> because they were shaded the same color as the object behind them.
>
> Am I doing something obviously wrong here?
>
> Is lighting even going to help me solve the problem I'm trying
> to solve?
>
> -Kyle
>
> --
> _
> -------------------------------ooO( )Ooo-------------------------------
> Kyle J. McDonald (o o) Systems Support Engineer
> Sun Microsystems Inc. |||||
> Enterprise Server Products [EMAIL PROTECTED]
> 1 Network Drive BUR03-4630 \\\// voice: (781) 442-2184
> Burlington, MA 01803 (o o) fax: (781) 442-1542
> -------------------------------ooO(_)Ooo-------------------------------
>
> ===========================================================================
> 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".
--
_
-------------------------------ooO( )Ooo-------------------------------
Kyle J. McDonald (o o) Systems Support Engineer
Sun Microsystems Inc. |||||
Enterprise Server Products [EMAIL PROTECTED]
1 Network Drive BUR03-4630 \\\// voice: (781) 442-2184
Burlington, MA 01803 (o o) fax: (781) 442-1542
-------------------------------ooO(_)Ooo-------------------------------
===========================================================================
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".