Not render on screen?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Mätzyboy
Posts: 5
Joined: Mon Apr 05, 2004 12:01 pm

Not render on screen?

Post 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?
Draco
Posts: 14
Joined: Sat Mar 13, 2004 8:55 pm

Post 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.
Mätzyboy
Posts: 5
Joined: Mon Apr 05, 2004 12:01 pm

Post by Mätzyboy »

Thanx! Exactly what I needed!
Mätzyboy
Posts: 5
Joined: Mon Apr 05, 2004 12:01 pm

Post 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!
Mätzyboy
Posts: 5
Joined: Mon Apr 05, 2004 12:01 pm

Post by Mätzyboy »

*discrete bump*
Anyone? Please?
Domarius
Posts: 178
Joined: Thu Mar 11, 2004 9:51 am
Location: Brisbane, QLD, Australia

Post by Domarius »

If no one can help you here, it might be a question for the advanced forum.
Guest

Post by Guest »

Does Irrlicht have a render to texture feature? If not, try another engine which does :P
Post Reply