Using Balder 8.8.8.9 in SLARToolKit

Jan 12, 2011 at 8:24 AM

Hi!

I create SLARToolKit project with Balder samples (Car, Tank, CubeRounded, Teapot). If I use version 8.8.8.8 it work well. But when I use Balder 8.8.8.9 version  I get the next error in BalderConvert Class:

Cannot apply indexing with [] to an expression of type 'Balder.Math.Matrix'

for this static method:

 

public static Matrix ToBalderMatrix(this System.Windows.Media.Media3D.Matrix3D matrix)
        {
            var m = new Balder.Math.Matrix();

             m[0, 0] = (float)matrix.M11;
             m[0, 1] = (float)matrix.M12;
             m[0, 2] = (float)matrix.M13;
             m[0, 3] = (float)matrix.M14;

             m[1, 0] = (float)matrix.M21;
             m[1, 1] = (float)matrix.M22;
             m[1, 2] = (float)matrix.M23;
             m[1, 3] = (float)matrix.M24;

             m[2, 0] = (float)matrix.M31;
             m[2, 1] = (float)matrix.M32;
             m[2, 2] = (float)matrix.M33;
             m[2, 3] = (float)matrix.M34;

             m[3, 0] = (float)matrix.OffsetX;
             m[3, 1] = (float)matrix.OffsetY;
             m[3, 2] = (float)matrix.OffsetZ;
             m[3, 3] = (float)matrix.M44;

             return m;
        }

 

 And I have second trouble, why I can't load another ASE objects allocated in Samples folder?

Coordinator
Jan 12, 2011 at 8:29 AM
Edited Jan 12, 2011 at 9:08 AM

I haven't looked into the latest Balder build. I guess Balder changed some interfaces. Maybe it uses fixed properties now and not an indexer anymore.  I don't update to every Balder build. I just don't have the time and what's wrong with the 0.8.8.8?

BTW, these are actually all questions for Balder http://balder.codeplex.com But please read the code, documentation, change log, ... before you post your question there.

 

- Rene Schulte