camera no action drawAll

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
forX
Posts: 22
Joined: Thu Sep 09, 2010 6:26 am

camera no action drawAll

Post by forX »

Hi ,
I have a little problem with a program using hWnd and draw a modified camera
so I not draw the fps camera (//smgr->drawAll())
but not using it make off fps control, so no action

did we have another function that I can use/call for that the program knows is suppose to do something?


note/idea : I have 2 other camera (link and modified from the first one), maybe I can link it with the receiver, and I drawAll each of them.

any ideas???
forX
Posts: 22
Joined: Thu Sep 09, 2010 6:26 am

Post by forX »

nobody have do multiple window for a program

I use a part of this post, but like here no answer
http://irrlicht.sourceforge.net/phpBB2/ ... 081#234081

any help/idea???
CuteAlien
Admin
Posts: 9987
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Sorry, I simply don't understand your question... I get it's "something" about using a custom window and rendering and camera controls. But I do not understand what your exact problem with that is. Can you try to formulate it again?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
forX
Posts: 22
Joined: Thu Sep 09, 2010 6:26 am

Post by forX »

I need to create the an app with 2 windows

both of them have their own camera,
each camera are created by the main camera of my scene (1 is the left side and the other the right side)

so, I cant use/draw the main camera and this make my program not moving

why is not moving, the move is on the window who's drawing

if I want that one of my 2 windows can be use for fps action (left, right, mouse direction ...), I need to use "WndProc" on CIrrDeviceWin32, but I cant or I dont know how

for the moment I create a new function wndProc on my main, but I cant just copy the code of CIrrDeviceWin32 because there so much things link to it.

maybe thats not the good approach, its what I have in my head now

did you understand or maybe you need more
just said it and I will try to be more understandable

and tanks for your answer
CuteAlien
Admin
Posts: 9987
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

So you need to pass the events from an own WndProc to the Irrlicht device?
forX wrote: for the moment I create a new function wndProc on my main, but I cant just copy the code of CIrrDeviceWin32 because there so much things link to it.
I think you are on the right track. Usually you must indeed do the same stuff as you see in the WndProc in CIrrDeviceWin32 yourself if you want to pass events from a normal Window to Irrlicht.

What linker Problems do you get?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply