Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Object3D Screenshot
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Object3D Screenshot (Read 2486 times)
Mr. K
byte
Posts: 17
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?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Object3D Screenshot
«
Reply #1 on:
April 15, 2016, 11:57:55 am »
Desktop Java or Android?
Logged
Mr. K
byte
Posts: 17
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
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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.
Logged
Mr. K
byte
Posts: 17
Re: Object3D Screenshot
«
Reply #4 on:
April 15, 2016, 02:04:15 pm »
thanks for the information
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Object3D Screenshot