Problems with writeContentsToFile method

Problems building or running the engine, queries about how to use features etc.
Post Reply
r4
Gnoblar
Posts: 19
Joined: Mon Jan 24, 2005 12:02 pm

Problems with writeContentsToFile method

Post by r4 »

Hi everybody!!!

I'm doing projections from a point of view and I want to store it as a png image. So I use the writeContentsToFile method from RenderTexture to do that. The problem is when I open the images they are completely black.

Anybody can help me :roll:

I'm using Ogre 1.0 with OpenGL (the method is only implemented in OpenGL).

Thanks!!!
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

I believe writeContentstoFile is only implemented for windows. You might want to try getting and locking the underlying pixel buffer on the texture that it renders to and copying the pixels out directly.
Post Reply