Why SPositionKey,SScaleKey and SRotationKey instead Matrix?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
david0313
Posts: 2
Joined: Thu Oct 30, 2008 7:15 am

Why SPositionKey,SScaleKey and SRotationKey instead Matrix?

Post by david0313 »

in ISkinnedMesh SPositionKey,SScaleKey and SRotationKey instead Matrix operate,and omit SScaleKey in irr, i think this is the ugly idea,because there some error when assemble matrix with SPositionKey,SScaleKey and SRotationKey ,so some translation have been killed. i hope it will favor matrix operation to ISkinMesh or IAnimateMesh
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Patches, or clear and explicit suggestions for improved functionality are always welcome.

We're still waiting for you to followup your previous bug report about this.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Luke
Admin
Posts: 449
Joined: Fri Jul 14, 2006 7:55 am
Location: Australia
Contact:

Post by Luke »

well separating them gives you more functionality, eg rotation and position frames can be at different rates, you can save space as most meshes only use rotation keyframes. optimize meshes that don't use scale, etc.

yes there might be rounding errors when loading an x mesh that uses matrices, but x keyframes can also be set separated too, with would also have rounding errors converting to matrices, if it was changed to that.
[url=irc://irc.freenode.net/irrlicht]irrlicht irc[/url] - corrodinggames.com
Post Reply