Re: [JAVA3D] Another Identify Picked Object Problem :(

2003-10-10 Thread Dirk L. van Krimpen
Carlos, I think you have to cast the node to a Shape3D, as follows: System.out.println(((Shape3D)node).getUserData()); Hope, it works for you, Dirk - Original Message - From: "Carlos Vieira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 09, 2003 2:24 PM Subject:

Re: [JAVA3D] Another Identify Picked Object Problem :(

2003-10-10 Thread Carlos Vieira
Hi, Thanks for the help, but it does not work :( I'm still trying but can't figure it out what is happening. Regards Carlos At 09:41 10-10-2003, you wrote: Carlos, I think you have to cast the node to a Shape3D, as follows: System.out.println(((Shape3D)node).getUserData()); Hope, it w

Re: [JAVA3D] Another Identify Picked Object Problem :(

2003-10-10 Thread Daniel Selman
It sounds like you set the user data on the Box (a Group), but not on the Shape3Ds that make up the Box (the faces). You need to recursively set the user data on all nodes of the Group to ensure that you have it after a pick. See the VrmlPickingTest example from my book: www.manning.com/selman Sinc

Re: [JAVA3D] Another Identify Picked Object Problem :(

2003-10-10 Thread Carlos Vieira
Hi again, This last solution worked 100% :) I have to say thanks to all of you for the help. Regards Carlos At 10:07 10-10-2003, you wrote: It sounds like you set the user data on the Box (a Group), but not on the Shape3Ds that make up the Box (the faces). You need to recursively set the

Re: [JAVA3D] Another Identify Picked Object Problem :(

2003-10-10 Thread Cassia Trojahn dos Santos
On 10 Oct 2003 at 10:06, Carlos Vieira wrote: Try (example clique Text2D): . text2d.setUserData("Java"); PickResult pickResult = null; Shape3D shape = null; pickC

Re: [JAVA3D] Another Identify Picked Object Problem :(

2003-10-10 Thread Alessandro borges
I guess this is the spected result, if you do not set a value to userData before... --- Carlos Vieira <[EMAIL PROTECTED]> escreveu: > Hi all of you, and thanks for your precious help :) > > I tried to make the identification by doing this: > > public void mouseClicked(MouseEvent e){ >

[JAVA3D] texturing problems

2003-10-10 Thread Flavius Alecu
I'm trying to put some textures on QuadArrays and the problem is...my texture is a pretty detailed .jpg picture of a brickwall, but the result on the geometry is just an ungly red color. It's the same thing when I try to put a stonetexture on the floor, the result is just a grey color, covering the