how to place a camera in the centre of a map

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.
JWein

yes

Post by JWein »

i've inserted the light infact i see the model now but it's very far and so
i can't enter in it because i can't move the camera!
Guest

Post by Guest »

Then scale it up, like andy said it.
Kande
Posts: 19
Joined: Fri Sep 10, 2004 9:37 pm
Location: Mannheim / Germany
Contact:

Post by Kande »

Arghhh...forgot to log in.... that was me.
Life is expensive..... but a trip around the sun is included.
jikbar
Posts: 62
Joined: Wed Aug 25, 2004 4:48 pm
Location: Canada
Contact:

Post by jikbar »

Kande wrote:Try to place your camera at (0,10,0) and set its target at (0,0,0) so the camera is over the object and looks down to it
This wont work: using DirectX or OpenGL the camera cant look straight up or straight down at somehing since it wont render because of the algos used to calculate perspective (tan 90 = infinity).

even the slightest change in the LookAt vector (0.0001, 0, 0) wil make it render correctly though

for anyone who doesnt understand, ignore this post :wink:
Kande
Posts: 19
Joined: Fri Sep 10, 2004 9:37 pm
Location: Mannheim / Germany
Contact:

Post by Kande »

Ooops... i didnt know that. Well, one thing more i learned.
Life is expensive..... but a trip around the sun is included.
Post Reply