www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Mr. K on April 15, 2016, 11:14:57 am

Title: Object3D Screenshot
Post by: Mr. K 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?
Title: Re: Object3D Screenshot
Post by: EgonOlsen on April 15, 2016, 11:57:55 am
Desktop Java or Android?
Title: Re: Object3D Screenshot
Post by: Mr. K on April 15, 2016, 01:20:48 pm
It's for Android but if the information is only for Desktop its ok
Title: Re: Object3D Screenshot
Post by: EgonOlsen 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() (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.
Title: Re: Object3D Screenshot
Post by: Mr. K on April 15, 2016, 02:04:15 pm
thanks for the information  :)