BVE: Translate command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ferrovipathe
    Senior Member
    • Apr 2003
    • 169
    • Paris, France.

    #1

    BVE: Translate command

    I don't know if somebody found it before, but translate and rotate commands work with everything, and that's realy great.

    For exemple, if you want to create a forest's object, just create a simple tree: (in b3d, more readable)


    [Meshbuilder]
    Vertex 4,9,0
    Vertex 4,-0.3,0
    Vertex -4,-0.3,0
    Vertex -4,9,0
    Vertex 0,9,4
    Vertex 0,-0.3,4
    Vertex 0,-0.3,-4
    Vertex 0,9,-4
    Face2 0,1,2,3
    Face2 4,5,6,7

    [Texture]
    Load Tree.Bmp
    Coordinates 0,0,0
    Coordinates 1,0,1
    Coordinates 2,1,1
    Coordinates 3,1,0
    Coordinates 4,0,0
    Coordinates 5,0,1
    Coordinates 6,1,1
    Coordinates 7,1,0
    Transparent 0,0,0

    You got a single tree just in the middle of track.

    Copy and paste it as many as you want (you want a forest)

    Then, adjust each tree with translate and rotate:
    For example:
    [Meshbuilder]
    Vertex 4,9,0
    Vertex 4,-0.3,0
    Vertex -4,-0.3,0
    Vertex -4,9,0
    Vertex 0,9,4
    Vertex 0,-0.3,4
    Vertex 0,-0.3,-4
    Vertex 0,9,-4
    Face2 0,1,2,3
    Face2 4,5,6,7

    Rotate 0,0,50,20 (your tree is bending!!!)
    Translate -5,0,7

    [Texture]
    Load Tree.Bmp
    Coordinates 0,0,0
    Coordinates 1,0,1
    Coordinates 2,1,1
    Coordinates 3,1,0
    Coordinates 4,0,0
    Coordinates 5,0,1
    Coordinates 6,1,1

    Very very nice.

    Thanks, Mackoy.





Working...