Re: [Algorithms] Left-handed vs. right-handed
Brought to you by:
vexxed72
|
From: Alen L. <ale...@cr...> - 2009-05-07 12:27:15
|
Graham wrote at 5/7/2009: > Now, my contention is that at run-time you want to avoid having to deal > with reflections: SO(3) is much nicer than O(3). Given that > requirement, the assumptions implicit in whatever driver/API is > underneath may make your choice of basis for you. Erm, wrong requirement. You _want_ to be able to deal with reflections at run time. I mean - its easier for me not to, but the artists need it - so it has to be that way. Stretches that are not multiples of identity and even those involving different signs on different axes are here to stay, for us at least. > The key is to make all your own code basis-agnostic. This is easy if > you have no preference! You can, and should, make majority of your code basis-agnostic. Internals of math, physics, lighting, etc. can be agnostic. But you cannot do it at the points of interfacing with the reality. When the user presses movement stick on the gamepad forward, you have to choose to map it to -Z, +Z, -Y, +Y, whatever... Same way when you want to output something on the screen, you have to know which of the axes in your internal representation is "front", which is "right" etc. and have to adjust your output to match the basis used by the rendering API. Cheers, Alen |