Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Crit
18
Years of Service
User Offline
Joined: 24th May 2006
Location:
Posted: 6th Apr 2007 17:15 Edited at: 6th Apr 2007 17:22
I was looking at the 3D math matrix commands in DBP last night, but I didn't see any way of pulling information out of a matrix. For example, you can extract the x,y,z, and w variables from a vector4, but I can't find similar matrix commands. I wouldn't mind making a memblock and manually pulling out the data, but I didn't see any "make memblock from matrix" type command either. Any suggestions?
wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 6th Apr 2007 20:32
Could you not loop through all the matrix vertices and store them in a memblock. Since you know how many segments the matrix is divided into (you created one in the first place) it should be a simple matter of finding the points and storing the info.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 6th Apr 2007 20:52
Wildbill, if you're talking about the DB Matrices that make landscapes, then you're on a totally different subject

Crit
18
Years of Service
User Offline
Joined: 24th May 2006
Location:
Posted: 6th Apr 2007 21:57
The matrix I'm talking about is a little bit like a 3x4 array. Using that analogy, how would I access the individual elements of the array?

(Don't tell me how to use arrays!)
Dmitry K
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 6th Apr 2007 23:34 Edited at: 6th Apr 2007 23:35
DBPro 6.6
res# = Get Matrix4 Element( Matrix, Element )

In older version use command DK Get Matrix4 Element from my plugin DKShop

Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce NX6600, CD-RW+DVD, WinXP
Crit
18
Years of Service
User Offline
Joined: 24th May 2006
Location:
Posted: 9th Apr 2007 15:26
Thanks Dmitry,
I guess it's time to upgrade!

Login to post a reply

Server time is: 2024-11-25 20:47:53
Your offset time is: 2024-11-25 20:47:53