>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Content-Transfer-Encoding: 8bit
>Date: Tue, 8 Jan 2002 14:49:19 +0100
>From: Marco Fiocca <[EMAIL PROTECTED]>
>Subject: [JAVA3D] problem with getPixelLocationFromImagePlate()
>To: [EMAIL PROTECTED]
>
>Hello everybody,
>
>I have a problem with this method.
>I want to have the projection of a Point3d from ImagePlate to java.awt
>coordinates, but I can't do this.
>I use an offscreen canvas and perhaps this is the problem;
>When I run this piece of code the result in p1out is (Nan,Nan) while I would
>expect the center of the image.
>What is the problem?
>
>Point3d p1 = new Point3d(0.0,0.0,0.0);
>Point2d p1out = new Point2d();
>
>canvas.getPixelLocationFromImagePlate(p1,p1out);
>

The program need to wait a little bit
until the scenegraph get live and notify
the Renderer thread to compute the image plate
coordinate system. This is true for both
onscreen & offscreen rendering.

Thanks.

- Kelvin
------------------
Java 3D Team
Sun Microsystems Inc.

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