View previous topic :: View next topic |
Author |
Message |
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Sat Jan 27, 2007 1:47 pm Post subject: Inconsistent code generation |
|
|
I've been having some serious issues with code generation with dmd 1.0 and 1.004, specifically with converting rotation matrices to quaternions to axis-angle vectors and back again.
Code: | module yage.main;
import std.stdio;
import yage.core.all;
void main()
{
Matrix a; // defaults to identity matrix
writefln(a);
writefln(a.toQuatrn().toAxis());
writefln(a.toAxis()); // commenting out this line changes the result of the previous line.
} |
a.toAxis() returns a.toQuatrn().toAxis(), so the results should always be the same anyway. I might see where I can get with a debugger, and I might try to narrow it down to a test case and report it as a bug, but otherwise I'm pretty clueless as to what to do about it. |
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Sat Jan 27, 2007 7:08 pm Post subject: |
|
|
DMD 0.177 is the last version where Yage passes all of the Vector, Matrix, and Quatrn unit tests in the core library, so it looks like the trouble began there. I'm reverting to it until Walter fixes these bugs. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|