Hello Kaya,

Kaya Kupferschmidt wrote:
> Hi All!
> 
> currently I am working a lot with the current OpenSG 1.8 CVS version.
> I am using the methods Matrix::getTransform and Matrix::setTransform,
> and I found a problem with matrices containing non-uniform scale values 
> in combination with rotations.
> 
> In short the following pseudo code does not work as expected:
> 
> (1) Matrix mtx = {...};
> (2) mtx.getTransform(trans, rot, scale, scaleOri);
> (3) mtx.setTransform(trans, rot, scale, scaleOri);
> (4) mtx.getTransform(trans, rot, scale, scaleOri);
> 
> are not invariant, that is I don't get the same results neither for 
> scale and scaleOri in (2) and (4) nor for mtx in (1) and (3).
> 
> I have attached a small test-program that should demonstrate
> the effect. The invariance shows in a permutation of scaling values as 
> returned in (2) and (4).
> I had a look at the source code, but I have to confess that it
> would take a substantial amount of time to understand the
> decomposition, so maybe the original author is still working on OpenSG 
> and could have a look. Althogh I am not sure whether its
> the getTransform or the setTransform method which causes the trouble, I 
> suspect the getter to be problematic due the code complexity.

this is unfortunately an old bug, that nobody seems to be able to figure 
out :(
According to Dirk the code is based on a Graphics Gem article and has 
been compared with that before, no difference could be found. However, 
for certain matrices the results are just not correct.

> Maybe there is already a fix in OpenSG 2.0?

I had hoped so as well, as the relevant file has a number of 
differences, but I just tried it, with the same sad result.

        Sorry,
                Carsten


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to