Changing camera height

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
alfabeta90
Posts: 52
Joined: Wed Dec 06, 2006 5:18 pm

Changing camera height

Post by alfabeta90 »

Hello, is it posible to change the fps camera height? I ask that because i used the code from the tutorials here and the camera is heigher then normal.The second thing is that i try to create crooshair. I make the cursor invisible and then i render a 2d image on its place:

Code: Select all

gui->getImage(driver->getTexture("cursor.bmp"), position2d<s32>(200,200));
or something like that. When i render it it shows the cursor but no attached to camera.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

if you want to change the height of the camera, increase/decrease the value y of the camera.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

What tuutorial do you use ???
I guess #07 (Collision tutorial)... ;)
In general search the API and/or the forum first (for all of your questions) !!!

for the camera height look at the createCollisionResponseAnimator function in the API documentation and especially for the 5th parameter (ellipsoidTranslation)...

for the crosshair look here: http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4725
at the bottom of this thread is an example code... ;)

you see, searching the docu and the forum probably solve most of your questions... :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply