Skip to main content

Canvas3D inside JInternalFrame WORKS!!!

13 replies [Last post]
Anonymous

Hello
I just tested Java 7 b19 with
java3d 1.5.1. It seems like lightweight/heavyweight mixing issue is
successfully solved! Even the OrbitBehavior works fine!
Take a look at the attachment.

[att1.html]
[moz-screenshot-1.jpg]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
interactivemesh
Offline
Joined: 2006-06-07

Hi,

it seems that [b]Java SE 6 Update 12[/b] already supports Canvas3D in JInternalFrames. Only the outline dragging mode issue still exists (can this be solved at all?).

August

aces
Offline
Joined: 2003-07-17

This is a very good news !

Thanks for this report ;)

stylertim
Offline
Joined: 2006-05-04

Nice! Finally heavyweight performance combined with lightweight widgets.

Has anyone ever tried running different canvases in a tabbed pane?

BTW, the bug detail concerning this is:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4811096

Dmitri Darine

Just tried :) It works :)
See att.

[att1.html]
[moz-screenshot-2.jpg]
[moz-screenshot-3.jpg]

stylertim
Offline
Joined: 2006-05-04

Awesome. :D

The whole thing finally opens a wide spectrum of overlay approaches. Very, very nice.

pepe
Offline
Joined: 2003-06-10

That's very great.
Any information about performances? How does that compare to JOGLPanel?

interactivemesh
Offline
Joined: 2006-06-07

Hi,

suprised by this news I reactivated an older MDI application based on JDesktopPane, JInternalFrame and Canvas3D. I compiled and ran it under JDK/JRE 1.7.0_b19:

- Z-order of JInternalFrame and Canvas3D works fine
- Java3D rendering has similar/same performance compared to JRE 1.6
- When a non selected JInternalFrame is selected the background is shown for a few milliseconds before its Canvas3D is rendered
- JInternalFrames which were moved back are often not fully repainted
- In outline dragging mode the JInternalFrame's outline is hidden by its own Canvas3D and those of other JInternalFrames

Screenshots are available here: http://www.interactivemesh.org/off/heavylightweighttest.html

August

Posted to 'Java SE Snapshots: Project Feedback' as well http://forums.java.net/jive/thread.jspa?messageID=233659&tstart=0#233659.

fnavarro02
Offline
Joined: 2010-09-03

Hi Everybody, specially interactivemesh, I've been trying to find a way of use Canvas3D inside of a JInternalFrame, I've just seen your screenshots and I think that's what I need, So Let me ask you for a sample code or whatever you want that can help me. I'd really thank you very much for this favor.

interactivemesh
Offline
Joined: 2006-06-07

Have a look here:

[b]Java Swing[/b]

Heavyweight Internal Frames : Java 3D Sample. http://forums.java.net/jive/thread.jspa?threadID=68282&tstart=0
Corresponding web page http://www.interactivemesh.org/testspace/j3dmeetsswing.html#heavyweight

[b]Scala Swing[/b]

Sample ScPropeller http://www.interactivemesh.org/testspace/j3dmeetsscala.html

August

chuck_sunny
Offline
Joined: 2010-12-15

hi interactivemesh,
is it possible for u to post ur code over here or send it to me?I am trying to solve a specific prolem since 3 days now but hav'nt got any idea how to do that. I've to integrate a canvas3d in a JInternalFrame. I saw in the screenshots tht u've done exactly wht i need to do. if u could send me ur code it will solve my problem and will help me to finish my project. thanku

interactivemesh
Offline
Joined: 2006-06-07

I suppose the sample PropellerUniverse is the subject of your interest. The PropellerUniverse1.0.zip file includes the code and resources. You'll find the download link here http://www.interactivemesh.org/testspace/j3dmeetsswing.html#heavyweight

Is this what you're looking for? August

mulchi
Offline
Joined: 2010-06-18

Hi,

did you try it on mac os x? Because I tried it and all the problems with
heavyweight mixing are still there on mac os :-( At least with the installed
JRE...

cheers
michael

interactivemesh
Offline
Joined: 2006-06-07

This is a well known 'bug'. See thread 'Mixing heavyweight and lightweight components on OS X' on Apple Mailing Lists http://lists.apple.com/archives/java-dev/2010/Jun/msg00153.html.

Also follow the link given by Mike Swingler, Java Engineering, Apple Inc..

Please, post him your frustration.

August