I am having trouble solving the "position within a bitmap" problem with
java3D.

It appears that the method used for getting that kind of information is to
capture the image in a back buffer, resize the image to a 1x1 size that
views the clicked pixel only, then call the readRaster function to get the
DepthComponent.  They you choose the top value off the DepthComponent for
the value of the selected item (since the map is selectable) and use that
for the Zbuffer value.  

Once you have the screen x,y,z, then do a transformation of coordinate space
(setting y to reference the correct direction) and multiply by the inverse
of the transform our coordinates were generated by.

Unfortunately, it looks like the only way to access the readRaster function
is to be in immediate mode rendering.  If I wanted to use Immediate Mode, I
would use opengl right from the source.  So it defeats the purpose.

Is there another way to get at this?  It seems that the idea was totally
left out of the compiled implementation.  This is a fairly common problem,
it surprises me that it is so obtuse.  Is there anyone with a different
methodology that works here??

I would appreciate the help...

Thanks

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to