Horde3D

Next-Generation Graphics Engine
It is currently 30.11.2024, 04:51

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 18.06.2009, 11:14 
Offline

Joined: 18.06.2009, 10:43
Posts: 2
hi guys,

i'm trying to do some matrix multiplikation, but i don't finde a way in C#.
my target is to get the absolut position from a 3D-object to set up another 3D-object.

private float[] _myAbsMatr;
private float[] _myRelMatr;
Horde3D.getNodeTransformMatrices(Application._canon, _myRelMatr, _myAbsMatr);

tanks a lot
aDouble


Top
 Profile  
Reply with quote  
PostPosted: 18.06.2009, 11:40 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Try this one:
Code:
           
IntPtr relMat, absMat;
Horde3D.getNodeTransformMatrices(light, out relMat, out absMat);
float[] dest = new float[16];
Marshal.Copy( absMat, dest, 0, 16);


Top
 Profile  
Reply with quote  
PostPosted: 18.06.2009, 12:06 
Offline

Joined: 18.06.2009, 10:43
Posts: 2
great... thanks a lot!!!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group