Hi >I want to have a Swing user interface, painted on > a face of a Java 3D If what you need is a 2D GUI interface inside a 3D enviroment, you can plan some pickable 3D objects (simple quads) with proper texture rendering and a behavior when clicked. But porting Swing to run inside a 3D inviroment requires Swing off-line rendering and mapping the 3D picking to 2D AWT event. It's a very hard work. See "3D User Interfaces with Java 3D", Jon Barrilleaux http://java.sun.com/developer/Books/Java3D/index.html
>Lars wrote: >How about painting a canvas3D on the side of a cube.. I guess a Texture Cube Mapping can solve your problem. There are other nice texture modes, as Sphere texture mapping, much more easier to put to roll, with near looking effect. You can mix off-line rendering and dinamic texturing to produce the "canvas3D on canvas3D" effect. The result is cool!! a simple CubeMapTexture demo here --> http://planeta.terra.com.br/educacao/alessandroborges/ (follow the 3D links ;)) Alessandro --- Lars van Gemerden <[EMAIL PROTECTED]> escreveu: > How about painting a canvas3D on the side of a cube. > Through the looking > glass ... Great idea, gives me all kinds of visions, > but I guess it would be > a miracle of OO design if the original designers > didn't use it as a design > goal. Can't rule it out though. > > Thanks, > > Lars > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED] Behalf Of > B�nigot Yves > Sent: maandag 26 april 2004 12:27 > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Using swing inside a Java3D > scene > > > I want to have a Swing user interface, painted on > a face of a Java 3D > Cube. > > There are tutorials and samples which describe > using Java 3D *inside* > Swing, but I didn't find > anything on using Swing *inside* Java3D. > > However it seems that both technologies use the > underlying awt at the low > level, so I think it > could be possible to do that, providing I can set > Swing to draw on a given > rectangle on the screen > (on of the Cube's face), possibly a "Graphics" > object. > > Do you think there is a way to do that ? or is it > still SciFi ? > > Have a nice day > > yves Benigot > > =========================================================================== > 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". > ______________________________________________________________________ Yahoo! Messenger - Fale com seus amigos online. Instale agora! http://br.download.yahoo.com/messenger/ =========================================================================== 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".
