Hi,
In an e-mail some time ago (below) you gave a formula that supposedly
converts between image plate and pixel coordinates. I've tried to use
this to convert from VWorld to pixel coordinates:
// Convert p from VWorld to image plate coordinates
Point3d p = new Point3d(10.0, 10.0, 10.0);
Tranform3D t = new Transform3D();
getVworldToImagePlate(t);
t.transform(p);
// Then bung p through you formula
However, your formula does not take into account the z component of p
and so the final coordinates aren't where I want them to be. Any ideas?
Have I got the wrong idea by tring to use getVworldToImagePlate()?
Thanks,
Jon Beniston.
Some time ago you wrote:
>
>There is no method that does what you want to do. We'll add this in
>the next version of Java 3D (1.2).
>
>For now, try the following workaround:
>
>xpix = xImagePlate / metersPerPixelX - canvasX
>ypix = ScreenHeight - 1 - yImagePlate / metersPerPixelY - canvasY
>
>where:
>(canvasX, canvasY) = canvas.getLocationOnScreen()
>(ScreenWidth, ScreenHeight) = Screen Size in Pixels
>metersPerPixelX = physicalScreenWidth / ScreenWidth
>metersPerPixelY = physicalScreenHeight / ScreenHeight
>
>Let me know whether or not this works for you.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/