Hello,
I know this question has been asked many times but I can't make it through...
I've a camera and I'm trying to disable the perspective, but i know nothing about matrix.
Here's how my current camera displays a cube which faces me:
I'd like to remove all perspective, to have a 'real' cube. Is it possible ?
Camera without perspective
Re: Camera without perspective
Matrix4 has a function buildProjectionMatrixOrthoLH. You pass that to the camera with ICameraSceneNode::setProjectionMatrix and set the isOrthogonal parameter to true.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 26
- Joined: Fri Jun 19, 2015 6:51 am
Re: Camera without perspective
Thank you
I couldn't find the setOrthogonal(true), any ideas ?
I couldn't find the setOrthogonal(true), any ideas ?
Re: Camera without perspective
Yes, use ICameraSceneNode::setProjectionMatrix which has that parameter.
You can't just have a flag for it because you need to describe the area to project with a matrix.
You can't just have a flag for it because you need to describe the area to project with a matrix.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 26
- Joined: Fri Jun 19, 2015 6:51 am
Re: Camera without perspective
Hello,
Sorry for the delay I had somethings to fix.
Thank you for helping me, once again
BIlly !
Sorry for the delay I had somethings to fix.
Thank you for helping me, once again
BIlly !