Help: Projection and View Transformations Matrixes are wrong

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Help: Projection and View Transformations Matrixes are wrong

Post by katoun »

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.
Kat'Oun
rogerborg
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

Post by rogerborg »

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?
Umm... because Irrlicht uses a left handed system.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

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.
Kat'Oun
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

Hello.
I found out my error.
I the transformation matrixes work Ok.
I use quaternion for camera orientation.
And as I figured out, quaternion system is Left-Handed. Is it true?
Kat'Oun
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

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
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

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. :wink:

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
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

The website looks nice.
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

Thank you.
Kat'Oun
Post Reply