[JAVA3D] Multiple Locale

2002-11-19 Thread Greg Huang
Hi everyone: If I want to define two or more local coordinates, can I make it by using multiple locale and how to do ? If can , have any example code to reference?   Thank in advance greg

[JAVA3D] Audio sourced from MediaContainers

2002-11-19 Thread Guy Carpenter
I'm trying to set the sound source for a pointSound. If I load sound data from a MediaContainer created from a URL, like this, it works: MediaContainer sample = new MediaContainer("file:/d:/vrml/doodoo.wav"); sound.setSoundData(sample); However if instead I create the MediaContainer from

Re: [JAVA3D] NullPointerException in RenderBin.collectDirtyTRInfo ??

2002-11-19 Thread Kelvin Chung
Hi Paul, This is another problem. Bug 4751162 - View TRANSPARENCY_SORT_GEOMETRY throws NullPointerException when viewpoint move has submitted previously. But because there is no test program we are not able to reproduce this. If you have one please send it to us. Thanks. - Kelvin

Re: [JAVA3D] NullPointerException in RenderBin.collectDirtyTRInfo ??

2002-11-19 Thread Paul Pantera
I'm seeing this too. I only see it occasionally, and only when transparency sorting is on. java.lang.NullPointerException at javax.media.j3d.RenderBin.collectDirtyTRInfo(RenderBin.java:6298) at javax.media.j3d.RenderBin.updateObject(RenderBin.java:845) at javax.media.j3d.M

Re: [JAVA3D] Java3D in CAVE

2002-11-19 Thread Paul Gordon
> Sounds like you may have gotten your graphics configuration from a single > screen and created a single window to cover all the physical screens. You > should get a graphics config from each physical screen device and create > separate Canvas3D instances for each one -- but you probably figured

Re: [JAVA3D] Java3D in CAVE

2002-11-19 Thread Mark Hood
> Date: Tue, 19 Nov 2002 13:46:56 -0500 > From: Mojtaba <[EMAIL PROTECTED]> > > We recently got our Java3D applications to work on SGI InfiniteReality3 > system and I just thought it may be useful for others to know some of > the things we had to do. Congratulations! Nice to know that ot

Re: [JAVA3D] Toon Shaders

2002-11-19 Thread Justin Couch
Djordjevich, Donna D wrote: By any chance, does anyone have any experience using a Toon Shader for J3D, and if so, do you recommend any? There was one that j3d.org was sent a link to. I tried looking it up on the sites page, but can't find anything off-hand. Have a look through the list archive

Re: [JAVA3D] Code repository ViewFrustum Problem

2002-11-19 Thread Justin Couch
Desiree Hilbring wrote: When I start the application I would expect that the terrain is being loaded and visible. But in fact, it is not. I becomes visible using the navigation. Maybe the problem lies with the tMatrix variable of ViewFrustum. The basic issue is a fundamental one with the way th

Re: [JAVA3D]

2002-11-19 Thread Shantz Family
Let X,Y,Z be your local coordinate frame (LF) with origin at 0,0,0 and Z=XcrossY. Let X',Y',Z', L' be a coordinate frame (CF) expressed in LF where L' is the location of the origin of CF in LF, X',Y',Z' are the axis' of CF expressed as orthogonal unit vectors in LF. Let P be a point expresse

Re: [JAVA3D] Does anyone know a workaround

2002-11-19 Thread Chien Yang
Yann, Do you have a reproducible test program for us ? thanks, Chien Yang Java 3D Team. Yann Lemoigne wrote: >Sometimes when i remove or add a child to my scene, i have this exeception : >(Java 1.3 OpenGL + JDK 1.4.1) > >If someone already see this; can he help me ? > >java.lang.IndexOutOfBound

Re: [JAVA3D]

2002-11-19 Thread Sean Sylvis
If you take the cross product of the two vectors (the "beam" vector and the "axis" vector), you will get a vector orthogonal to both of them (the order that you take the cross product will determine which of the two orthogonal vectors you get -- right-hand rule). Use this as your axis of rotatio

[JAVA3D] Java3D in CAVE

2002-11-19 Thread Mojtaba
Hello, We recently got our Java3D applications to work on SGI InfiniteReality3 system and I just thought it may be useful for others to know some of the things we had to do. 1-Attach head view in Java3D to tracker position in CAVE: this involves writing the JNI interface to TrackD, writing an Inp

Re: [JAVA3D] extending Canvas3D

2002-11-19 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
by the way...with one windows (one Canvas3D) the refresh is not a problemonly when you have multiple one. That's true at least for me...I guess Alejandro has a similar problem but with only one Canvas3D although he is using an applet instead of an application. Mario Mariusz Zaczek NASA -

[JAVA3D] Behaviours and loaded files

2002-11-19 Thread Jennifer Mc Gann
Hi there, This is the first time I've used this support so here goes I am creating a collision behaviour between two objects which are both loaded into a file. The behaviour is in a seperate file and goes along the lines of the following: import java.util.*; import javax.media.j3d.*; import j

Re: [JAVA3D] extending Canvas3D

2002-11-19 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
I tried the code addition in each of my 4 canvases (canvasi) but I still have the same refresh problem...it still has a delay before I regain control of the window. Do you think it may have to to something with the GraphicsConfiguration? or is there something else that I could be doing wrong? Mari

Re: [JAVA3D] extending Canvas3D and refresh

2002-11-19 Thread Alejandro Allievi
Hi, I posted a question in the past regarding the refresh issue (see below) for an **applet** not an application. I get the Canvas3D to show its contents only after I have it all visible and I refresh the web page. Even with super.paint(g); Toolkit.getDefaultToolkit().sync(); the problem persist

Re: [JAVA3D] extending Canvas3D

2002-11-19 Thread George Hedges
Hi Mariusz, It may not be a problem with having multiple canvases. We had a similar issue with our canvas. This code seems to have fixed the problem. When you create your Canvas3D, over-ride your paint method like this: GraphicsConfiguration gc = getGraphicsConfig(); canvas3d = new Canvas3D(gc)

Re: [JAVA3D] extending Canvas3D

2002-11-19 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
Sorry..I have to take it all back...I double checked my code and I must have been thinking about something else or I was just too stupid to double check correctly...you guess which it was :) Anyway, I noticed that the definite reason for the "refresh" issue is that fact that I have multiple Canva

[JAVA3D] Code repository ViewFrustum Problem

2002-11-19 Thread Desiree Hilbring
Hi Justin or others, I downlowded the code from the cvs repository and I am playing with the Roam example. Basically I would like to include the Roam code in my system. Playing with the Roam example code I encountered the following problem. Since I don't use data from the data format in the provid

Re: [JAVA3D]

2002-11-19 Thread Kevin Glass
I suppose you could use Transform3D.lookAt() to achieve this? Kev Stein-Arne Sivertsen wrote: I have a rather simple question which might be a bit off-topic, but i am looking for a method that can take a beam/line represented by two points [start,end] anywhere in space and produce the Transform

[JAVA3D] Culling Shape3D

2002-11-19 Thread Alex
Hi All,   I have a problem while trying to cull a Shape3D in my application. When I pick an Object in my application, the Shape3D would cull. But the problem lies when I add the same Shape3D to another BranchGroup and it would cull as well. I just want to cull the Shape3D in the BranchGroup

[JAVA3D]

2002-11-19 Thread Stein-Arne Sivertsen
I have a rather simple question which might be a bit off-topic, but i am looking for a method that can take a beam/line represented by two points [start,end] anywhere in space and produce the Transform3D that coincides the line with one of the principal axis (local coordinates, with startpoint in o

[JAVA3D] Does anyone know a workaround

2002-11-19 Thread Yann Lemoigne
Sometimes when i remove or add a child to my scene, i have this exeception : (Java 1.3 OpenGL + JDK 1.4.1) If someone already see this; can he help me ? java.lang.IndexOutOfBoundsException: Index: 4, Size: 4 at java.util.ArrayList.RangeCheck(ArrayList.java:508) at java.util.ArrayL