Rendering without a window?

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
Criamon

Rendering without a window?

Post by Criamon »

Hi,

is it somehow possible that Irrlicht only renders to a part of a window?
I want to use Irrlicht within an existing application. Within this application there is an open space (a panel) in the application where Irrlicht should draw to.

Is it possible to use Irrlicht within an axtiveX control?

Thanks
Criamon
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

There's an example of how to do a split screen view in the tutorials section, you should have a look there.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Splitscreening would work if you wanted a panel in the Irrlicht window.

No, there isn't an easy way to set Irrlicht to render to only a window defined as an activeX control.
Crud, how do I do this again?
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Oh right, like using it in HTML or something like that?
Miwa
Posts: 28
Joined: Wed Feb 18, 2004 10:48 pm

Post by Miwa »

I just modified the createDevice call to take a hwnd param. Then in the func if the param is NULL, I let irrlicht do it's normal thing, otherwise I just have it use the passed hwnd. I then added a few other functions so I could call funcs instead of letting it have the WndProc. (like for WM_* handling and such). I also don't use the run() function, as I have my own message loop.

When I have some time, I'll put together my classes, and examples of having irrlicht windows in an MFC app.
Criamon

Post by Criamon »

@miwa This sounds promising. I will have to dig into code too. Let me know, if you succeed.


Thanks,
Criamon
Post Reply