------ =_NextPart_001_01C049BB.4A02C482
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
What are the details of the sphereAppearance you created?=A0 Did you
enable lighting?=A0 If so, did you put a light in the scene?=A0 Colors =
from
lighting are generated using the Material of the appearance, so those
colors must be set as well.
=A0
-Lee
-----Original Message-----
From: Bob Gray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] program installation - Step by step instructions
I am using the Sphere util. class to create spheres.=20
=A0=A0=A0 Sphere S1 =3D new Sphere(sphereRadius);=20
=A0=A0=A0 S1.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);=20
=A0=A0=A0 S1.setAppearance(sphereAppearance);=20
=A0=A0=A0 TG1.addChild(S1);=20
=A0=A0=A0 BG.addChild(TG1);=20
The spheres do show up but they are black even though I set the color =
in
the appearance to be red.=20
Could it be the surface normals are pointing in the wrong direction?=20
Is there a way to invert the surface normals on a Sphere object?=20
I've used Spheres before with no problem.=A0 I didn't have to invert =
any
normals.=A0 So I don't really think this is the problem.=A0 But I can't
think of anything else that it could be.
Any suggestions?=20
Bob Gray=20
------ =_NextPart_001_01C049BB.4A02C482
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>RE: [JAVA3D] program installation - Step by step instructions</TITLE>
<META content="MSHTML 5.50.4207.2601" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=524404019-08112000><FONT face=Arial color=#0000ff size=2>What
are the details of the sphereAppearance you created? Did you enable
lighting? If so, did you put a light in the scene? Colors from
lighting are generated using the Material of the appearance, so those colors
must be set as well.</FONT></SPAN></DIV>
<DIV><SPAN class=524404019-08112000><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=524404019-08112000><FONT face=Arial color=#0000ff
size=2>-Lee</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Bob Gray
[mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Wednesday, November 08, 2000 2:21
PM<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B> Re: [JAVA3D]
program installation - Step by step instructions<BR><BR></FONT></DIV><BR>
<P><FONT size=2>I am using the Sphere util. class to create spheres.</FONT>
</P>
<P><FONT size=2> Sphere S1 = new Sphere(sphereRadius);
</FONT><BR><FONT size=2>
S1.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);</FONT> <BR><FONT
size=2> S1.setAppearance(sphereAppearance);</FONT> <BR><FONT
size=2> TG1.addChild(S1);</FONT> <BR><FONT
size=2> BG.addChild(TG1); </FONT></P>
<P><FONT size=2>The spheres do show up but they are black even though I set
the color in the appearance to be red.</FONT> </P>
<P><FONT size=2>Could it be the surface normals are pointing in the wrong
direction?</FONT> <BR><FONT size=2>Is there a way to invert the surface
normals on a Sphere object?</FONT> </P>
<P><FONT size=2>I've used Spheres before with no problem. I didn't have
to invert any normals. So I don't really think this is the
problem. But I can't think of anything else that it could be.</FONT></P>
<P><FONT size=2>Any suggestions?</FONT> </P>
<P><FONT size=2>Bob Gray</FONT> </P></BLOCKQUOTE></BODY></HTML>
------ =_NextPart_001_01C049BB.4A02C482--
===========================================================================
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".