Re: [JAVA3D] RE : [JAVA3D] JDialog and Java3D

2003-04-02 Thread Kevin Glass
Most likely this is to do with how you're creating the canvas that is being used in the dialog. When you set the dialog to modal the setVisible(true) call blocks on the current thread until setVisible(false) is called. This "blocking" is probably stopping the rendering thread from running. Have to

[JAVA3D] ClassCastException from javax.media.j3d.GeometryAtom

2003-04-02 Thread Bill Hibbard
We occasionally see these Exceptions: java.lang.ClassCastException: javax.media.j3d.GeometryAtom at javax.media.j3d.TransformGroupRetained.setTransform(TransformGroupRetained.java:161) at javax.media.j3d.TransformGroup.setTransform(TransformGroup.java:111) at . . . We c

Re: [JAVA3D] Another Sound Question

2003-04-02 Thread Guy Carpenter
As I recall, I found it always returned -1 too, even with local files. Sorry - don't have a workaround. At 04:04 PM 3/04/2003 -0800, jrs wrote: Hi All, I know sound is very buggy and I've read through the previous posts on sound but I've tryied everything else so I have nothing left except to t

[JAVA3D] Another Sound Question

2003-04-02 Thread jrs
Hi All, I know sound is very buggy and I've read through the previous posts on sound but I've tryied everything else so I have nothing left except to try and ask here. The question is in relation to sound durations, in the sound class there is a method getDuration() which should return the sounds

Re: [JAVA3D] RE : [JAVA3D] JDialog and Java3D

2003-04-02 Thread Todd J.
Do both Canvas3D's stop rendering or just the one in the modal JDialog? Which operating system? -Todd Arnaud Forgues wrote: (actually I have a JFrame with a 3d scene and another one which is the JDialog, with another 3d scene. And I would like to have this one on top of the first in modal mode!)

Re: [JAVA3D] Fill color

2003-04-02 Thread Brad Christiansen
Hi, Depending on the detail you need the easiest way would be to use a texture to show NZ etc. If you need 'real' geometry for the continents etc then you would probably be best not to try and place the continents over a sphere. Instead you shoudd use a geo-transform libary to map real earth da

[JAVA3D] Fill color

2003-04-02 Thread Siew Ching Tan
Hi all, I am trying to contruct an Earth with all the continents being displayed on the surface of the Earth using Java3D. My question is ,for example, how do I display New Zealand on the surface of a sphere ? And also how do I fill New Zealand with color? Besides, if i would like to contruct New

[JAVA3D] RE : [JAVA3D] JDialog and Java3D

2003-04-02 Thread Arnaud Forgues
Thank you Isaac for this help, but I tried and it doesn’t work ! Moreover, I read that JDialog are not LightWeight components although they are swing Components. Could it be a problem of frame focus ? (actually I have a JFrame with a 3d scene and another one which is the JDialog, with ano

Re: [JAVA3D] JDialog and Java3D

2003-04-02 Thread Isaac Brobbey
Problems with swing and java3D , try JPopupMenu.setDefaultLightWeightPopupEnabled(false);     ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);   Hope that helps.   Isaac Brobbey Java2 & Java3D MS/CIT Project -Original Message- From: Discussion

[JAVA3D] JDialog and Java3D

2003-04-02 Thread Arnaud Forgues
Hello Guys,   I am trying to insert a 3d scene into a swing component JDialog. This works well while I set the ‘modal’ parameter to false. However if I set it to true, the dialog frame is frozen and my 3d scene doesn’t render!! I am sorry if it is a well-known problem between swing and

Re: [JAVA3D] ? OrbitBehavior and LookAt ?

2003-04-02 Thread ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA)
Thanks Matt. I was not actually able to get your code to work with the hacking that I'm doing. Instead I did the following: To refresh...the problem I was having is that I had a SimpleUniverse with an OrbitBehavior. The OrbitBehavior worked fine, but I also wanted the ability to set a view to any

Re: [JAVA3D] ? OrbitBehavior and LookAt ?

2003-04-02 Thread Pierce, Matthew A
Mario - I use the orbit behavior and the Transform3D "lookAt" in my application with OK results. I have included some code snippets below, but I don't think I am doing anything special. You need to do two things: update the orbit behavior focus point, and update the view platform transform gro

[JAVA3D] ? OrbitBehavior and LookAt ?

2003-04-02 Thread ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA)
If you use 'OrbitBehavior' is there a way to also use the 'lookAt' function of the viewing transform3d correctly? Does anyone have any example code? I can use the OrbitBehavior but once I do a single rotation of my view and then try to use the lookAt function to set my view I don't get the proper

Re: [JAVA3D] Problems with 2 Frames

2003-04-02 Thread kindy huang
see if this is helpful: http://www.j3d.org/tutorials/quick_fix/swing.html I am new to Java3D, too. -Mian --- Marco Lombardo <[EMAIL PROTECTED]> wrote: > I have a little problem with a program in my > project. > I have a JFrame with contains a Canvas3D (in a > JPanel). I have used 4 JButton in th

[JAVA3D] Problems with 2 Frames

2003-04-02 Thread Marco Lombardo
I have a little problem with a program in my project. I have a JFrame with contains a Canvas3D (in a JPanel). I have used 4 JButton in this JFrame. When I push a JButton of this,  sometimes happens that the new JFrame (that must be shows on the first) is shows badly (it's like if the PC wait

Re: [JAVA3D] Memory Problem

2003-04-02 Thread JOSEPH ROSS JEYNES
I want to be un-subscribed - Original Message - From: hterrolle To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:30 PM Subject: Re: [JAVA3D] Memory Problem Hi Issac,   I develop an application. And i just find out that it take a lot of place. I