Export a rendered frame into image.... or another way...

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
hydexon
Gremlin
Posts: 164
Joined: Sun Apr 14, 2013 8:51 pm
x 10

Export a rendered frame into image.... or another way...

Post by hydexon »

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.
User avatar
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...

Post by tod »

There is a way, but I don't know how. :lol:
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.
User avatar
spacegaier
OGRE Team Member
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...

Post by spacegaier »

We also do that at Ogitor for the assets in a project.

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...
scrawl
OGRE Expert User
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...

Post by scrawl »

Take a look at the Texture::convertToImage function.
hydexon
Gremlin
Posts: 164
Joined: Sun Apr 14, 2013 8:51 pm
x 10

Re: Export a rendered frame into image.... or another way...

Post by hydexon »

Thanks you for your replies, now will find which is the best..., but thanks anyway!
Post Reply