Two irrlicht viewports?

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
crazy1k
Posts: 7
Joined: Sat Dec 19, 2015 1:13 pm

Two irrlicht viewports?

Post by crazy1k »

Task is simple: My viewport size is 640x480. I need to get an exact 2D screen coordinates of certain point in 3D, but projected onto 1280x960 viewport.
Additional info:
- Simply multiplying coordinates by 2 is not an answer - I need precise coordinates.
- Making viewport any larger is not acceptable due to my GUI desing.
- I get screen coordinates of a point using getSceneCollisionManager()->getScreenCoordinatesFrom3DPosition(vector3df(...)...)
- If this will be another viewport, but larger, it must be invisible
- My program is similar to this example http://irrlicht.sourceforge.net/docu/example014.html, I mean it`s very simple and straightforward.
- No fullscreen.
Thanks in advance. Glad to hear any ideas :)
Post Reply