Relative scene node positioning

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
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

Relative scene node positioning

Post by shaim »

Hi.
I would like to know how to set a node position (x,y) according to the screen size one set when creating a device.
Currently i am setting constant numbers to the scene nodes (x,y) but if i will change the screen size, the nodes position will be changed.
How one can set a relative position according to the screen dimention?
Thank you.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

If you want to use a perspective camera, then I recommend reading this post.

Alternatively, you could use an orthographic camera which will allow you to specify your positions in proportions of screen size.

Moved to beginner's help. None of your questions so far have been complicated.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

Post by shaim »

Thanks.
I will move to begginners help forum
Post Reply