[JAVA3D] memory leaks when using java3d in an applet

2000-04-25 Thread Dean Keeler
Hi, I have written an applet that uses Java3d and loads in a vrml file. I have noticed that when I leave the page containing the applet memory does not appear to be freeing up automatically. It seems that each time I reload the applet, it takes up more memory, runs slower, and will eventually m

Re: [JAVA3D] Collision Behaviors

2000-04-25 Thread Kelvin Chung
Hi Martin, >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 >Date: Tue, 25 Apr 2000 20:58:24 +0100 >From: Martin Baker <[EMAIL PROTECTED]> >Subject: [JAVA3D] Collision Behaviors >To: [EMAIL PROTE

[JAVA3D] Variable item count in GeometryArray

2000-04-25 Thread D.A. Woods
I would like to use a triangleArray (or ideally a triangle strip array) to store my scene geometry. This will change slightly frame by frame with the number of triangles/ strips not remaining constant. Do I have to copy the entire array each time the triangle count changes, into a new arra

[JAVA3D] PointAttributes

2000-04-25 Thread Casteel, Don
I'm having trouble displaying points on a WinNT machine with a Wildcat 3510 graphics card. My application assigns a PointArray to a Shape3D object. If I set my Appearance-PointAttributes to a point size of 8 and antiailising to true, the points show up as single pixels. If I turn antiailising fal

[JAVA3D] Collision Behaviors

2000-04-25 Thread Martin Baker
Could anyone help me confirm my understanding of Collision Behaviors as below, or could you tell me about any tutorials that cover these issues)? * By default the bounds used in collision testing are internally computed each frame (unless overridden by Shape3D.setCollisionBound() or Node.setBound

[JAVA3D] FW: [JAVA3D] Calculating angles from a Matrix3d Object

2000-04-25 Thread Pondrom, Pierre L
If you use +psi as + Z rotation, +tht as +Y rotation and +phi as +X rotation then, tht = asin(m02), psi = -atan(m01/m00) phi = -atan(m12/m22) If you need other rotations, they can be derived in any order. > Hope this helps. > > -- > From: Dean Keeler[SMTP:[EMAIL PROTECTED]] > Re

Re: [JAVA3D] GraphicsConfiguration...

2000-04-25 Thread Jacob Nikom
Look at http://pub.cs.tu-berlin.de/doc/java/jdk/api/java.awt.GraphicsConfiguration.html Jacob Augustin Gjini wrote: > > I see in lots of Java 3D program this piece of code > > GraphicsConfiguration config = > SimpleUniverse.getPreferredConfiguration(); > c3D = new Canvas3D(config

[JAVA3D] Double Buffering

2000-04-25 Thread giles
When using the recommended method of initializing a Canvas3D object(rec from the list I believe): 1 canvas = new Canvas3D(GraphicsEnvironment.getLocalGraphicsEnvironment(). getDefaultScreenDevice().getDefaultConfiguration()); I get a canvas without double b

[JAVA3D] GraphicsConfiguration...

2000-04-25 Thread Augustin Gjini
I see in lots of Java 3D program this piece of code GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration(); c3D = new Canvas3D(config); Can anybody be able to explain me this ?? Thanks...

Re: [JAVA3D] Calculating angles from a Matrix3d Object

2000-04-25 Thread Daniel del Río
Hi Dean, if you concatenate multiple transforms the code won't work. For a matrix there exists more than one solution for the angles around X, Y, and Z axis. One solution could be found a tuple of euler anlges, see: http://users.ece.gatech.edu/~slabaugh/personal/research/euler/euler.html I hope

[JAVA3D] Bug in Canvas.getVworldToImagePlate()

2000-04-25 Thread Robert McLaughlin
Hi I am trying to get the perspective parameters from the view matrix used to generate the scene on my canvas. When I use Canvas.getVworldToImagePlate() the last row of the matrix is 0 0 0 1 I've reading up on my projective geometry over the last week, and for a perspective transformation,

Re: [JAVA3D] Hm... How to reset a scene

2000-04-25 Thread ArtMotion
Could you send me a few lines code? (hmm) Arne Halvorsen wrote: > Keep your initial Transform3D objects, reset button action is to set that > Transform3D to the TransformGroup node in question using its setTransform > method. > > ArtMotion wrote: > > > My users are somethimes "funny" and move th

[JAVA3D] Calculating angles from a Matrix3d Object

2000-04-25 Thread Dean Keeler
Hi, I am trying (have been trying for a while) how to calculate the angular values around X, Y, and Z from a Matrix3d object. I am trying to echo positional data of a vrml object to the user. I get the Transform3D object from the TransformGroup vrml node and then get the matrix3d object and the

Re: [JAVA3D] Hm... How to reset a scene

2000-04-25 Thread Daniel Selman
Art, A better way (in terms of UI) would be to create your own Key or Mouse behavior that didn't allow the user to move objects outside of the visible view. Before updating the behavior's T3D you can check that the translations fall within predefined limits. Sincerely, Daniel Selman [EMAIL PRO

[JAVA3D] StereoSound in Java3D - PointSound and Movement

2000-04-25 Thread Rico Slaby
hello   I've created a Viewer-object, an AudioDevice and a ViewingPlatform and it works. A KeyNavigationBehavior operate on the TransformGroup of the View-Branch, so i can walk through the 3D world. Then i have placed a PointSound in the middle of the scene. The sound is playing.   When i c

Re: [JAVA3D] Hm... How to reset a scene

2000-04-25 Thread Arne Halvorsen
Keep your initial Transform3D objects, reset button action is to set that Transform3D to the TransformGroup node in question using its setTransform method. ArtMotion wrote: > My users are somethimes "funny" and move the objects out of the view, so > that they can't see it them anymore. > > Now I

Re: [JAVA3D] HELP ON Keybaord Navigation

2000-04-25 Thread ArtMotion
can you send me a little example, that's incorporation it ? - I'm very new to Java3D Andrew Adrian wrote: > There is a KeyNavigatorBehavior class built in to the Java3D API. the > documentation is very good for it, and I think they mention it in the > tutorial as well. The key map is a bit str

Re: [JAVA3D] 3DS Loader (NCSA)

2000-04-25 Thread ArtMotion
Can you send me a small example that's working with VRML Loader ? I'm using Java3D 1.1.1 under Linux! Will it also run there?   Evan Drumwright wrote: Chad, I'd recommend you export in VRML97 format and use the VRML working group's loader instead...  Alternatively, you can export in .DXF format

[JAVA3D] Hm... How to reset a scene

2000-04-25 Thread ArtMotion
My users are somethimes "funny" and move the objects out of the view, so that they can't see it them anymore. Now I would like the implement a "RESET"-Button. So that all objects are restored (moved back) to the point were I created them first. Please help me, I just have 1 (ONE) week left, to f