From: H. H. <hen...@gm...> - 2008-08-27 16:42:22
|
More on the invert: A generic 4x4 invert matrix routine is not actually even very usable or needed routine. You get better performance by noting on special matrix types. For example, inverse of rotation is negative rotation or transpose of the 3x3 matrix and it is faster to calculate inverse of a perspective projection than inverse of generic 4x4 matrix. The reason I included the MatInverse in the API is that people would always ask us "where is the inverse?". Generic inverse is nice to have and "necessary" but usually it is better to do a specialized inverse. On Wed, Aug 27, 2008 at 7:37 PM, Henri Häkkinen <hen...@gm...> wrote: > Well no it does not but is that assert even necessary in tutorials? > > On Wed, Aug 27, 2008 at 7:00 PM, Orhun Birsoy <orh...@gm...>wrote: > >> Is assert a code path? I think it is not. I mean that`s the whole point, >> the code should have a single path. I always thought unit tests are for >> release (i.e production), so there will be no error behavior (i.e. assert) >> in release builds. If this is a problem then I would suggest to remove the >> assert all together. >> >> More on removing the assert: >> Inverse operation is not something you use when you are a newbie (drawing >> a cube does not require one or at least not in CPU). When you start using >> matrix inverses, a well placed, briefly commented assert(glmMatDeterm4f (m) >> != 0) [or something similar] in a glsdk tutorial will not confuse anybody. >> Or will it? >> >> -- >> Orhun Birsoy >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Glsdk-devel mailing list >> Gls...@li... >> https://lists.sourceforge.net/lists/listinfo/glsdk-devel >> >> > > > -- > Henri 'henux' Häkkinen > > -- Henri 'henux' Häkkinen |