Page 1 of 1

Not render on screen?

Posted: Mon Apr 05, 2004 12:25 pm
by Mätzyboy
Hello! I'm new to the Irrlicht engine but have found it suitable for a small application I want to try making.

The application is supposed to be a DLL file which is going to be imported into another program. What I want my DLL file to be able to do is render a 3d mesh to a bitmap/png image which the other program will use. Some functions will be programmed aswell for manipulating camera angle, change frame in animation etc.

Question:
Is it possible to not render onto the screen, but instead onto some kind of image?

Posted: Mon Apr 05, 2004 6:53 pm
by Draco
technically, no. You can render to the NULL device though, which basically renders nothing, and you can then use other irrlicht functions to get the image that would normally be rendered and save to a file.

Posted: Tue Apr 06, 2004 3:48 pm
by Mätzyboy
Thanx! Exactly what I needed!

Posted: Mon Apr 12, 2004 5:06 pm
by Mätzyboy
during the last few days I've been trying out the NULL device. I get it to work fine, as far as I can tell by not seeing any result at all :wink: . I've also started looking into the documentation searching for something to get the image from. I've come to the conclution that getPixel(x,y) might do the trick if I step through the image coordinates. Slow perhaps, but it might work. my problem now is to find a poiter/reference to the image itself, from which getPixel can be called.

How do I find this pointer/reference? Is it possible to use getPixel with the NULL device even though it doesnt render anything?

Is there a better way of doing this?

Grateful for all advice!

Posted: Thu Apr 22, 2004 11:10 pm
by Mätzyboy
*discrete bump*
Anyone? Please?

Posted: Fri Apr 23, 2004 4:42 am
by Domarius
If no one can help you here, it might be a question for the advanced forum.

Posted: Fri Apr 23, 2004 2:18 pm
by Guest
Does Irrlicht have a render to texture feature? If not, try another engine which does :P