Try to set the back clip plane to see if it is this !
universe = new SimpleUniverse(canvas);
ViewingPlatform viewingPlatform = universe.getViewingPlatform();
vpTransGroup = viewingPlatform.getViewPlatformTransform();
Viewer viewer = universe.getViewer();
view = viewer.getView();
view.setFieldOfView(0.78539f);
view.setBackClipDistance(500.0f); // Or set it alot larger
Ole Vilmann
-----Original Message-----
From: David Ko [mailto:[EMAIL PROTECTED]]
Sent: 12. december 2000 12:53
To: [EMAIL PROTECTED]
Subject: [JAVA3D] 3D game question
Hello,
I'm writing a top-down game (like asteroids). I have a 3D ship that fires
bullets. Everything works fine...until you move the outside a certain
range from the origin. Once the ship crosses that border, the bullets
fired by the ship completely disappears. The bullets are stored in a
single TriangleArray and I am using setValidVertexCount to display only
the particles that need to be displayed. Also, I use the camera obtained
from the ViewingPlatform to follow the ship as it moves through space.
I suspect the TriangleArray is being view frustum culled out when the ship
"drags" the camera far enough away from the origin. However, is there a
way to set the bounds of either the camera or the triangleArray so that
the bullets don't disappear? I tried using the setBounds method in the
Shape3D method, but to no avail. Anyone have ideas?
thank you,
dave
===========================================================================
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".
===========================================================================
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".