Results 1 to 10 of 10

Thread: The secret anatomy of a shape file...don't ask me!

  1. #1
    Join Date
    Jul 2003
    Location
    Worcester, United Kingdom.
    Posts
    2,135

    Default The secret anatomy of a shape file...don't ask me!

    I was told to rename all three references to the tree I wished to use: MATRIX, IMAGE, and PRIMARY STATE. I have been asked what the Matrix and Primary state references do other than the Image reference.

    I Don't know, but I bet there is someone out there who does!

    Mike :o



  2. #2

    Default RE: The secret anatomy of a shape file...don't ask me!


    "Matrix" will typically mean transformation matrix, i.e. the data describing rotation and translation of the object.

    matrices for 3d work are typically 4x4, composed out of 4 vectors. from what i can see the one here skips the last element of each vector, which isn't really used:

    matrix MSSpruce1H ( 1 0 0 0 1 0 0 0 1 0 0 0 )

    this can be read as (placing a break after every 3rd number)

    x y z
    -----
    1 0 0 ('right' vector, points from object center to its right)
    0 1 0 ('up' vector, points up)
    0 0 1 ('forward' vector, points... yes, forward)
    0 0 0 (translation vector, or in other words, position offset)

    this particular matrix is called "identity" matrix, as it doesn't change the orientation/position of the object from its parent.

    The other two, i have no idea. :s

  3. #3
    Join Date
    Nov 1999
    Location
    Charlestown, Sweden.
    Posts
    1,773

    Default RE: The secret anatomy of a shape file...don't ask me!

    The MATRIX and PRIM_STATE has nothing todo with the IMAGE.
    The IMAGE is the name of your texture file and is referenced by index in the rest of the file. If you want to use a different ace-file change this name and you're done.
    The MATRIX and PRIM_STATE belong to each other and it's the name you gave that part of the shape in your 3D program. If you don't set a name one can see such names as Object1 and the like. Does not matter as long as it's unique within the file.
    [font size='2' face='Verdana' color='#990000']
    //Okrasa
    Chief Engineer & Track Welder
    okrasa @ xtracks.tk
    http://www.geocities.com/okrasaghia
    http://www.xtracks.tk
    [/font]

  4. #4
    Join Date
    Nov 1999
    Location
    Charlestown, Sweden.
    Posts
    1,773

    Default RE: The secret anatomy of a shape file...don't ask me!

    The MATRIX and PRIM_STATE has nothing todo with the IMAGE.
    The IMAGE is the name of your texture file and is referenced by index in the rest of the file. If you want to use a different ace-file change this name and you're done.
    The MATRIX and PRIM_STATE belong to each other and it's the name you gave that part of the shape in your 3D program. If you don't set a name one can see such names as Object1 and the like. Does not matter as long as it's unique within the file.
    [font size='2' face='Verdana' color='#990000']
    //Okrasa
    Chief Engineer & Track Welder
    okrasa @ xtracks.tk
    http://www.geocities.com/okrasaghia
    http://www.xtracks.tk
    [/font]

  5. #5

    Default RE: The secret anatomy of a shape file...don't ask me!

    That answers my question here:

    [Link Expired]

    but these references all have different names !

    O t t o

  6. #6

    Default RE: The secret anatomy of a shape file...don't ask me!

    That answers my question here:

    [Link Expired]

    but these references all have different names !

    O t t o

  7. #7
    Join Date
    Nov 1999
    Location
    Charlestown, Sweden.
    Posts
    1,773

    Default RE: The secret anatomy of a shape file...don't ask me!

    Nice little program you're running there!
    Yes the ace-file you only need to change the value in IMAGE.
    Why the other two differ I can't say, thought they would be the same but could be they differ in some 3D tools and not others. In that case I take it the MATRIX value is used by index also.
    Anyway there is no reason for a normal user to change anything in there but for the texture file name possibly (and perhaps a little shifting and scaling using SFM).
    [font size='2' face='Verdana' color='#990000']
    //Okrasa
    Chief Engineer & Track Welder
    okrasa @ xtracks.tk
    http://www.geocities.com/okrasaghia
    http://www.xtracks.tk
    [/font]

  8. #8
    Join Date
    Nov 1999
    Location
    Charlestown, Sweden.
    Posts
    1,773

    Default RE: The secret anatomy of a shape file...don't ask me!

    Nice little program you're running there!
    Yes the ace-file you only need to change the value in IMAGE.
    Why the other two differ I can't say, thought they would be the same but could be they differ in some 3D tools and not others. In that case I take it the MATRIX value is used by index also.
    Anyway there is no reason for a normal user to change anything in there but for the texture file name possibly (and perhaps a little shifting and scaling using SFM).
    [font size='2' face='Verdana' color='#990000']
    //Okrasa
    Chief Engineer & Track Welder
    okrasa @ xtracks.tk
    http://www.geocities.com/okrasaghia
    http://www.xtracks.tk
    [/font]

  9. #9

    Default RE: The secret anatomy of a shape file...don't ask me!

    That's not the only nice little program from the [/b]TK-TOOLS[/b] stable I am running, making my life a lot easier working with Shape.s files. ;-)

    There is also this one:



    Open a Shape file with it and it un-compresses it. Edit it with UltraEdit32, Save it and Open it again with the ZIPPER to compress it. Couldn't be easier !

    Thanks, Oki ! ;-)

  10. #10

    Default RE: The secret anatomy of a shape file...don't ask me!

    That's not the only nice little program from the [/b]TK-TOOLS[/b] stable I am running, making my life a lot easier working with Shape.s files. ;-)

    There is also this one:



    Open a Shape file with it and it un-compresses it. Edit it with UltraEdit32, Save it and Open it again with the ZIPPER to compress it. Couldn't be easier !

    Thanks, Oki ! ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •