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.
Relative scene node positioning
-
rogerborg
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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.
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way