Well, I don't know what's wrong in your app. I looked on your code and
apparently is ok.

However, I'm able to create modal dialogs containing canvas3d's in an app
containing it's own canvas3d without problems. My app is doing exactly the
same thing as you describe, I have a JFrame with a 3d scene (a lego model)
and a *modal* JDialog where I can choose the new brick I want to add,
containing a small canvas3d where I preview the brick, with no problems at
all.

Maybe your problem is related to the graphic card / graphic driver (I'm
using nvidia gf series) ?

Are you using shared graphic contexts, background images or full scene
antialising ? You should have a look at those properties in the java3d
readme.

How is your geometry created ? Is it possible that your 3ds loader is
creating the geometry in by ref mode ? Then you may hit the bug 4686527
Deadlock between MasterControl and user thread when using ByRef
updateData(). Also try without compiling the branch groups: 4712205 Window
panels disappear when BranchGroup.compile() is used.

Cheers,

Florin


-----Urspr�ngliche Nachricht-----
Von: Arnaud Forgues [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 3. April 2003 12:52
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] RE : [JAVA3D] RE : [JAVA3D] JDialog and Java3D


Sorry,

Better with attachments !

Arnaud

-----Message d'origine-----
De�: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] De la part de Kevin Glass
Envoy�: jeudi 3 avril 2003 09:39
��: [EMAIL PROTECTED]
Objet�: Re: [JAVA3D] RE : [JAVA3D] JDialog and Java3D

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 see the code structure to guess at the problem really,

Kev

> 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 another 3d scene.
> And I would like to have this one on top of the first in modal mode!)
>
> -----Message d'origine-----
> De : Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED] De la part de Isaac Brobbey
> Envoy� : mercredi 2 avril 2003 04:05
> � : [EMAIL PROTECTED]
> Objet : Re: [JAVA3D] JDialog and Java3D
>
> 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 list for Java 3D API
> [mailto:[EMAIL PROTECTED] On Behalf Of Arnaud Forgues
> Sent: Wednesday, April 02, 2003 2:09 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] JDialog and Java3D
>
> 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 java3d but
> could anyone enlighten me on the problem ?
>
> Regards
>
> Arnaud Forgues


--
Jose UML - http://www.newdawnsoftware.com/jose
Pondering RPG - http://pondering.newdawnsoftware.com

========================================================================
===
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".

Reply via email to