What about something like this?
SimpleVector Point22D = Interact2D.project3D2D(camera, FrameBuffer, PointOfImpact);
int IntColor=FrameBuffer.getPixel(Point22D.x, Pint22D.y); // this function is just missing, but would be usefull. The getPixels
// just take too long and get too many
// not-required data.
RGBColor PixColor = new RGBColor( (IntColor>> 16) & 255, (IntColor>>
& 255, IntColor & 255);
Iti shouldn't be difficult to write a function like the getPixel (x,y) that will be faster than the getPixels().
With that, it should be possible to get it nearly right.
What do you think?
Thanks,
Ulrick