#9 Higher level world objects - patch

closed-rejected
nobody
None
5
2011-07-31
2001-12-13
Dave Brosius
No

This patch makes it easier for world designers to
design worlds, by providing three higher
order 'structure' primitives.

An example .bzw file would be:
-----------------------------
stairs
position 100.0 100.0 0.0
rotation 45.0
size 50.0 50.0 50.0
steps 12
end

window
position -100.0 100.0 0.0
rotation 33.0
size 100.0 30.0 50.0
framesize 10
end

bridge
position 100.0 -200.0 0.0
rotation 60.0
size 80.0 10.0 60.0
end
-----------------------------

Of course these new 'objects' simple are converted to
plain CustomBoxs, and thus this patch is completely
version safe.

Discussion

  • Dave Brosius
    Dave Brosius
    2001-12-13

    Logged In: YES
    user_id=66596

    The thought occurs to me, that it would probably be a
    pretty good idea to add a triangle primitive object. (not
    pyramid). If this occured, we could support any 2-1/2D
    structure through triangulation. World editors could just
    describe a 2D polygon and height, and it would be converted
    to a set of triangle buildings.

     
  • Dave Brosius
    Dave Brosius
    2001-12-21

    Logged In: YES
    user_id=66596

    Updated patch to include new
    group object
    This allows you to group several other primitive objects
    into one super object.

    This is useful if you have a group of buildings that you
    like to replicate in mass around the world. Just define the
    group relative to the center, with rotation 0, then
    duplicate it several times with groups, where each group
    specifies a different position and rotation.

    To do: Be able to name a group, and then to refer to it by
    name, so that you don't have to duplicate a groups
    contents. Would be trivial with stl, but alas.....

    Here's a sample world file:
    #######################################

    group
    position 100.0 100.0 20.0
    rotation 30.0
    #notice the group doesn't end here!!

    box
    position 0.0 90.0 0.0
    rotation 0.0
    size 100.0 10.0 20.0
    end

    box
    position 90.0 0.0 0.0
    rotation 0.0
    size 10.0 100.0 20.0
    end

    box
    position 0.0 -90.0 0.0
    rotation 0.0
    size 100.0 10.0 20.0
    end

    box
    position -90.0 0.0 0.0
    rotation 0.0
    size 10.0 100.0 20.0
    end

    #now end group
    end

     
  • Dave Brosius
    Dave Brosius
    2001-12-21

    Logged In: YES
    user_id=66596

    Updated patch to include new
    group object
    This allows you to group several other primitive objects
    into one super object.

    This is useful if you have a group of buildings that you
    like to replicate in mass around the world. Just define the
    group relative to the center, with rotation 0, then
    duplicate it several times with groups, where each group
    specifies a different position and rotation.

    To do: Be able to name a group, and then to refer to it by
    name, so that you don't have to duplicate a groups
    contents. Would be trivial with stl, but alas.....

    Here's a sample world file:
    #######################################

    group
    position 100.0 100.0 20.0
    rotation 30.0
    #notice the group doesn't end here!!

    box
    position 0.0 90.0 0.0
    rotation 0.0
    size 100.0 10.0 20.0
    end

    box
    position 90.0 0.0 0.0
    rotation 0.0
    size 10.0 100.0 20.0
    end

    box
    position 0.0 -90.0 0.0
    rotation 0.0
    size 100.0 10.0 20.0
    end

    box
    position -90.0 0.0 0.0
    rotation 0.0
    size 10.0 100.0 20.0
    end

    #now end group
    end

     
  • Dave Brosius
    Dave Brosius
    2002-12-18

    World Builder patch file (v3)

     
    Attachments
  • Jeff Myers
    Jeff Myers
    2011-07-31

    • status: open --> closed-rejected