Re: [JAVA3D] same Action Listener for buttons

2001-08-28 Thread Illarramendi Amilibia, Aitor
Title: Help You could set a different actionCommand to each button. ->   button1.setActionCommand("Button1") ;   Then in the ActionListener class you could inside actionPerformed(ActionEvent e) method to "ask" for events actionCommand and know which button started th

Re: [JAVA3D] same Action Listener for buttons

2001-08-28 Thread Renoir Sewjee
Call the getSource() method of ActionEvent to find out which button was pressed. For example,   public void actionPerformed(ActionEvent event) {     Object source = event.getSource();       if (source == button1)     {   // button 1 code }     else if (source == button2)

[JAVA3D] Show some geometry only in a specific view

2001-08-28 Thread Sebastian Hentschel
I have a program that shows four view of the same scenegraph. top,left,front and user-head view And i want to display a simple grid out of lines. I programmed a Grid-Geometry and it works. But in user-head and in top view, i only want to see the XZ-Grid, in front view the XY-Grid and in left

[JAVA3D] Raster transparency

2001-08-28 Thread Sebastian Hentschel
Hi i want to write additional textual Information over the 3D Scene. I tried it with a raster. In front of the complete Scene. I tried to make the black content to be transparent. But the black content in not transparent. I tried it with the following. Raster raster = new Raster();

Re: [JAVA3D] Show some geometry only in a specific view

2001-08-28 Thread Dipl. Ing. Paul Szawlowski
wait for version 1.3 see http://java.sun.com/products/java-media/3D/1.3.html at the moment you could work with different activation radii or setting the back clipping planes and place objects which should not be seen in a View behind that plane or out of the activation area. Sebastian Hentschel

Re: [JAVA3D] Raster transparency

2001-08-28 Thread Dipl. Ing. Paul Szawlowski
> raster.setImage(new > ImageComponent2D(ImageComponent2D.FORMAT_RGBA,image2D)); > > objRoot.addChild(new Shape3D(raster)); add an Appearance object to the Shape3D with appropriate TransparencyAttributes set. ===

[JAVA3D] Possible bug in Box class

2001-08-28 Thread Alejandro Terrazas
Hi- If I specify capability bits in the Box constructor, I lose the effects of the Appearance. For example, when I construct a Box with Box box = new Box(.3f,.3f,.3f, Box.ENABLE_GEOMETRY_PICKING,ap0); The box has no Appearance. When I do: Box redbox = new Box(.3f,.3f,.3f, ap0); I se

[JAVA3D] Texture mapping problems

2001-08-28 Thread Kevin J. Duling
I'm having some pretty severe texture mapping problems and I can't see what's wrong.  At http://www.users.qwest.net/~kduling/Milkshape/ at the bottom of the page is a screenshot illustrating the problem.  It seems that the first triangle is fine, but after that, it's unpredictable.     The b

Re: [JAVA3D] Why J3DBuffer is public ?

2001-08-28 Thread Kevin Rushforth
J3DBuffer is a public wrapper class for java.nio.Buffer. This was done primarily to allow us to support Java 3D 1.3 on JDK 1.3 (having a GeometryArray method that took a java.nio.Buffer class directly would have precluded JDK 1.3 support). It also facilitates error checking. -- Kevin Rushforth

[JAVA3D] transparency

2001-08-28 Thread João Paulo Menegatti
which transparent textures I can use with Java 3D, besides the .GIF?it is possible to use the format .PNG?Thanks,J.P.E.O.F

Re: [JAVA3D] Possible bug in Box class

2001-08-28 Thread Kelvin Chung
Hi Alejandro, When Box redbox = new Box(.3f,.3f,.3f, ap0); is used, the primFlags is set to GENERATE_NORMALS by default. For other constructor, should add GENERATE_NORMALS if lighting is used. i.e. Box box = new Box(.3f,.3f,.3f, Box.ENABLE_GEOMETRY_PICKING|Box.GENERATE_NORMALS ,ap

[JAVA3D] J3DBuffer questions

2001-08-28 Thread Artur Biesiadowski
Kevin Rushforth wrote: > J3DBuffer is a public wrapper class for java.nio.Buffer. This was done > primarily to allow us to support Java 3D 1.3 on JDK 1.3 (having a > GeometryArray method that took a java.nio.Buffer class directly would > have precluded JDK 1.3 support). It also facilitates erro

Re: [JAVA3D] Milkshape 3D Loader released

2001-08-28 Thread Pierce, Gregory (TBS)
Another Milkshape Loader has been released. It is located at http://www.gregorypierce.com under the Cappuccino project. The file URL is incorrect on the site - it should point to:   http://www.gregorypierce.com/projects/cappuccino/downloads/cappuccino03.zip   Will fix it this evening.

[JAVA3D] Heavyweight JMenu?

2001-08-28 Thread Spencer Goh
Hi there just a small problem with overdraw again.   Other than creating a floating JMenuBar in a separate frame or restricting myself to only use JPopupMenus, is there any way I can make JMenus heavyweight as currently all my menus are obscured by my canvas3Ds in my JInternalFrames?  

[JAVA3D] Retriving Viewing parameters

2001-08-28 Thread Juan Miguel
Hi Everybody I have a question:   " Is it possible to represent parameters that a virtual camera model has, via   Transform3D t3d1=new Transform3D();  universe.getViewingPlatform().getViewPlatformTransform().getTransform(t3d1);  ?"   I need a vector known as UP  and it's

Re: [JAVA3D] J3DBuffer questions

2001-08-28 Thread Kevin Rushforth
See comments embedded below. >Date: Tue, 28 Aug 2001 19:38:20 +0200 >From: Artur Biesiadowski <[EMAIL PROTECTED]> > >If we are at subject of buffers: > >1) How will the buffers be created ? I cannot find a method for this in >java3d alpha spec. See the java.nio documentation. Specifically, Byte

Re: [JAVA3D] Heavyweight JMenu?

2001-08-28 Thread Pierce, Gregory (TBS)
Its in the FAQ on j3d.org. Once you set popups menus to heavyweight - the whole menu system becomes heavyweight. -Original Message-From: Spencer Goh [mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 28, 2001 2:31 PMTo: [EMAIL PROTECTED]Subject: [JAVA3D] Heavyweight JMenu?

Re: [JAVA3D] Heavyweight JMenu?

2001-08-28 Thread Justin Couch
> Its in the FAQ on j3d.org. Once you set popups menus to heavyweight > - the whole menu system becomes heavyweight. Not quite correct. You can set it on a per-menu basis. Here's the code I use in my scribbler application where I use some swing frames and some heavyweight frames JMenuBar me

[JAVA3D] OrbitBehavioir and Pickbehaviors : Can I do it?

2001-08-28 Thread Zak Nixon
Is there anyway that you can have both OrbitBehavior and the PickZoom,PickRotate,PickTranslate behaviors going at the same time?   Thank you,   zak

Re: [JAVA3D] Heavyweight JMenu?

2001-08-28 Thread Spencer Goh
Thanks for that.. I couldn't find the right method... Saw the faq etc.. but when I did JPopupMenu.setDefaultLightWeightEnabled(false) it didn't work for normal menus.. and I couldn't find a similar method for JMenus themselves... but I guess your code explains how! Cheers Spencer -Original

Re: [JAVA3D] New Java 3D book: Java 3D API Jump-Start

2001-08-28 Thread P. Flavin
Web3d's H-Anim & Java combine, in a new book (sort of) ... A new Java3d book has a Human model, it's pseudo H-Anim, which is both good news & bad news. It's good that Web3d's H-Anim is being featured in another book, but we've been Aaron Walsh -ed again, it's inferior to established methods:

Re: [JAVA3D] loading a 3ds file constructed in Amapi

2001-08-28 Thread Adrian Meekings
Sorry ! Its because I used the calendar to check out a date just before I downloaded Amapi and got a trial licence. Consequently I accidently set the date incorrectly and the trial licence did not work therefore By the way to conclude this little discussion on Amapi. I can confirm that the e

Re: [JAVA3D] transparency

2001-08-28 Thread Allan Andersen
Yes. The TextureLoader can load PNG files. You can Adobe PhotoShop to inspect and create the Alpha Channel layer. - Original Message - From: João Paulo Menegatti To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 7:13 PM Subject: [JAVA3D] transparency which