Hello,
I am making a game (rendering in the starting faze) engine for my licence at my University ( Falculty of Mathematics and Computer Science), inspired from Irrlicht and wich even uses some code from Irrlicht too.
I have used the Matrix class from Irrlicht and I want to use the Right Handed system but I got a left handed view, I don't know why?
Please anyone could help, I'll apreciate 'it!
The sources are on SVN at source forge:
https://k-game.svn.sourceforge.net/svnroot/k-game
Thank you.
Help: Projection and View Transformations Matrixes are wrong
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Re: Help: Projection and View Transformations Matrixes are w
Umm... because Irrlicht uses a left handed system.katoun wrote:I have used the Matrix class from Irrlicht and I want to use the Right Handed system but I got a left handed view, I don't know why?
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
I know.
But instead of using mProjMatrix.buildProjectionMatrixPerspectiveFovLH(mFOVy, mAspect, mNearDist, mFarDist);
I use
mProjMatrix.buildProjectionMatrixPerspectiveFovRH(mFOVy, mAspect, mNearDist, mFarDist);
and for the view I use mViewMatrix.buildViewMatrixRH(pos, target, up);.
I decided not to have to negate Z for the projection matrix in the OpenGLRenderSystem(VideoDevice) but to use the same system OpenGL uses.
I'm not stupid!
How about you take a look at my source code and see what I have done and then make remarks.
I my be absent-minded but not stupid.
But instead of using mProjMatrix.buildProjectionMatrixPerspectiveFovLH(mFOVy, mAspect, mNearDist, mFarDist);
I use
mProjMatrix.buildProjectionMatrixPerspectiveFovRH(mFOVy, mAspect, mNearDist, mFarDist);
and for the view I use mViewMatrix.buildViewMatrixRH(pos, target, up);.
I decided not to have to negate Z for the projection matrix in the OpenGLRenderSystem(VideoDevice) but to use the same system OpenGL uses.
I'm not stupid!
How about you take a look at my source code and see what I have done and then make remarks.
I my be absent-minded but not stupid.
Kat'Oun
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
I'd tell you, but a smart guy like you should be able to figure it out yourself.
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
Like I allways did, everithing by myself:
siting in front of total-commander with my engine besides 3 version of Irrlicht, 2 versions of Lightfather, 10 versions of Ogre, 1 version of OGE trying to get piece by piece the best designes out of them.
I have created a simple web site for my progect.
You can find it at: http://k-game.sourceforge.net/ if you want to take a look.
Please don't start with insultes. I have put a lot of effort in it, to get it the way I wanted it, especialy that I am a student and besides that I work full time at a mobile games company. It a lot of stress, and I've seen my engine come to life little by little and I think I made one "hell" of an API so far.
Please check out the sources and tell me what you think about them.
It is by fare ready for a beta version, but I got some scheleton for the engine .
Regards to all.
siting in front of total-commander with my engine besides 3 version of Irrlicht, 2 versions of Lightfather, 10 versions of Ogre, 1 version of OGE trying to get piece by piece the best designes out of them.
I have created a simple web site for my progect.
You can find it at: http://k-game.sourceforge.net/ if you want to take a look.
Please don't start with insultes. I have put a lot of effort in it, to get it the way I wanted it, especialy that I am a student and besides that I work full time at a mobile games company. It a lot of stress, and I've seen my engine come to life little by little and I think I made one "hell" of an API so far.
Please check out the sources and tell me what you think about them.
It is by fare ready for a beta version, but I got some scheleton for the engine .
Regards to all.
Kat'Oun
The website looks nice.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info