Subject:
|
Re: My VB DAT viewer and matrix handling
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Wed, 11 Apr 2001 14:36:47 GMT
|
Viewed:
|
673 times
|
| |
 | |
In lugnet.cad, Daniel Crichton wrote:
> let's say in a DAT I have:
>
> 1 0 X Y Z A B C D E F G H I parent.dat
>
> and in parent.dat I have
>
> 1 0 x y z a b c d e f g h i child.dat
[snip]
> a' = a*A
> b' = b*D
> c' = c*G
> d' = d*B
> e' = e*E
> f' = f*H
> g' = g*C
> h' = h*F
> i' = i*I
BTW, you can rewrite the whole problem as a matrix multiply:
|a d g 1| |A D G 0|
|b e h 1| x |B E H 0|
|c f i 1| |C F I 0|
|x y z 1| |X Y Z 1|
Which doesn't seem very interesting, except that the left-hand matrix
doesn't have to be 4x4 - it can have any number of rows. So you could load
all the data from a subfile into a 4xn matrix, do a multiply against the
transformation matrix, and get a 4xn matrix as the result.
Steve
|
|
Message has 1 Reply:  | | Re: My VB DAT viewer and matrix handling
|
| "Steve Bliss" <steve.bliss@home.com> wrote in message news:kdo8dtsd7oe3ltm...4ax.com... (...) load (...) I've got that sorted now, next on the cards is to implement hidden surface removal - maybe I should give in and implement som OpenGL or DirectX (...) (24 years ago, 11-Apr-01, to lugnet.cad)
|
Message is in Reply To:
 | | My VB DAT viewer and matrix handling
|
| I'm having some trouble working out the matrix handling for parts in a DAT file given the parent DAT matrix. What I'm doing is the following: let's say in a DAT I have: 1 0 X Y Z A B C D E F G H I parent.dat and in parent.dat I have 1 0 x y z a b c (...) (24 years ago, 10-Apr-01, to lugnet.cad)
|
7 Messages in This Thread:   
    
      
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|