Author Topic: Object3D Screenshot  (Read 2405 times)

Offline Mr. K

  • byte
  • *
  • Posts: 17
    • View Profile
Object3D Screenshot
« on: April 15, 2016, 11:14:57 am »
Hi guys, How can i take a screenshot of a 3DObject?,  i want to save an image of a 3DObject in a JPG, i need to use FrameBuffer?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Object3D Screenshot
« Reply #1 on: April 15, 2016, 11:57:55 am »
Desktop Java or Android?

Offline Mr. K

  • byte
  • *
  • Posts: 17
    • View Profile
Re: Object3D Screenshot
« Reply #2 on: April 15, 2016, 01:20:48 pm »
It's for Android but if the information is only for Desktop its ok

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Object3D Screenshot
« Reply #3 on: April 15, 2016, 01:52:57 pm »
You can use this method to get the actual screen pixels: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/FrameBuffer.html#getPixels()

All that's left, is to create an image out of these pixels and save it. You should be able to find information on how to do that online pretty quickly.

Offline Mr. K

  • byte
  • *
  • Posts: 17
    • View Profile
Re: Object3D Screenshot
« Reply #4 on: April 15, 2016, 02:04:15 pm »
thanks for the information  :)