I'm afraid that's a typo.  I was trying to be less confusing by using the
names objBack and objRoot.  In my original code, I was sloppy and used
objRoot twice (the classic "cut and paste error").  When I composed my post,
I missed one.

Just renaming that odd objRoot to objBack should have solved it for you.
Did you try moving the camera about?  The coordinates for Orion put it off
to your 'right'.

Try this attached class.  As soon as you start it, you should see the red
face of a color cube, and a star in the upper left corner.  Use your left
mouse button to rotate the camera about the cube.  You should see the stars
in the background then.



----- Original Message -----
From: "Christian Bartel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 4:00 AM
Subject: Re: [JAVA3D] Rand / Stars dissappear in the distance


> Hi Corysia!
>
> Thank you for the code below. But I do not really understand what is
> happening there...
>
> You are creating "BranchGroup createBackGraph()" but you are adding the
> pointArray to "objRoot"... what is the use of the objBack then?
> When I tried to add the pointArray to objBack there were no stars visible
at
> all...
>
> I am a little bit confused about that...
>
> Thanks,
>         Christian
>

Stars.java

Reply via email to