I'm creating a little asset browser for our editor for fast prototyping and will good get previews of meshes rendered in Ogre (like UDK Content browser does) and embedded into a SQLite database, but my question is a way to render that mesh into a image or i can get another alternative?
Thanks.
Export a rendered frame into image.... or another way...
-
- Gremlin
- Posts: 164
- Joined: Sun Apr 14, 2013 8:51 pm
- x 10
- tod
- Troll
- Posts: 1394
- Joined: Wed Aug 02, 2006 9:41 am
- Location: Bucharest
- x 94
- Contact:
Re: Export a rendered frame into image.... or another way...
There is a way, but I don't know how.
I know Paged Geometry manages to render entities into images, to display as billboards on the distance. You could look into the code and see how it's done.
I know Paged Geometry manages to render entities into images, to display as billboards on the distance. You could look into the code and see how it's done.
- spacegaier
- OGRE Team Member
- Posts: 4304
- Joined: Mon Feb 04, 2008 2:02 pm
- Location: Germany
- x 135
- Contact:
Re: Export a rendered frame into image.... or another way...
We also do that at Ogitor for the assets in a project.
See the function void EntityViewWidget::_createImages(ImageMap& retlist)
See the function void EntityViewWidget::_createImages(ImageMap& retlist)
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
-
- OGRE Expert User
- Posts: 1119
- Joined: Sat Jan 01, 2011 7:57 pm
- x 216
Re: Export a rendered frame into image.... or another way...
Take a look at the Texture::convertToImage function.
-
- Gremlin
- Posts: 164
- Joined: Sun Apr 14, 2013 8:51 pm
- x 10
Re: Export a rendered frame into image.... or another way...
Thanks you for your replies, now will find which is the best..., but thanks anyway!