2

I am working on application in JAVA using jMonkeyEngine. If app is running, I need get a pixel color at a given coordinates. My app extends SimpleAplication. Robot does not work, the app window is smaller than the screen. I did not find something like getColorBuffer(), getColor(), getPixel() or similar function in SDK so is there in Java another way to do it?

Andremoniy
  • 34,031
  • 20
  • 135
  • 241

1 Answers1

0

Try reading this information from the frame buffer.
You can get the result of rendering (the frame buffer containing the result) by adding a SceneProcessor via ViewPort.addProcessor().

weaselflink
  • 244
  • 2
  • 7