Im not sure this will work, but its worth
trying
PointArray starGeom1 =
new PointArray(7,
PointArray.COORDINATES);
Appearance starAppear1 = new Appearance(); starGeom1.setCoordinate( 0, new Point3f( 0.79483311f, -0.58810995f, 0.14955615f)); starGeom1.setColor (index, new
Color3f(blah,blah,blah));
It appears that this should work, because I have
used the following code before :
for (int x = 0; x < L;
x++)
for (int y = 0; y < L; y++){ land.setCoordinate ((x * L) + y, new Point3f (x * interpolation, y * interpolation, sampled_DTM.DTM [x][y] / (50f / mag))); land.setColor ((x * L) + y, color); }
Can you tell me where you got the information on
the stars from? Is this data freewear? I would find this data usefull for a
project I am currently working on...
|
- [JAVA3D] FW: [JAVA3D] making an object(s) "disappe... Ahmed Shakil
- Re: [JAVA3D] FW: [JAVA3D] making an object(s) &quo... John Richardson
- [JAVA3D] Making a starfield Background with Po... Corysia Taware
- Re: [JAVA3D] Making a starfield Background... Artur Biesiadowski
- Re: [JAVA3D] FW: [JAVA3D] making an object... Nathan Bower
- Re: [JAVA3D] FW: [JAVA3D] making an object(s) &quo... Mona Wong