CAmera movement Problems

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
TomBishop
Posts: 3
Joined: Wed Mar 22, 2006 12:38 pm

CAmera movement Problems

Post by TomBishop »

Hi there!
I just played around a bit with Irrlicht.NET and tried to create my own custom camera control. For that I added a camera scene node and an event receiver which sets the target and the position of the camera. That works, but it really looks ugly becasuse there is always a redraw between setting the new position and the target of the camera... is there a way to set the target (look at) and the position at once or another method to fix that?

Thanks Tom
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

Try calling updateAbsolutePosition() for the camera after changing its position and target.
Guest

Post by Guest »

Thanks, but my problem is that the update process occurs so often that you first see the change of the position and than the change of the target...
troopa
Posts: 28
Joined: Thu Mar 23, 2006 11:00 am
Location: Toulouse (France)
Contact:

Post by troopa »

I have got the same problem !! can you tell me how did you solve your problem. It's really boring this stuff !!
nomad
Posts: 53
Joined: Thu Jan 05, 2006 12:35 pm
Location: Wales

Post by nomad »

I gave up on setTargetPos(), and just calculate the camera rotation manually, like this:

Code: Select all

	vector3df fwd = lookatpoint - m_pCamera->getPosition();
	vector3df angle=fwd.getHorizontalAngle();
	m_pCamera->setRotation(angle);
Post Reply