The 3rd Age

The Peloponnesian Wars

The Peloponnesian Wars

The Peloponnesian Wars (or TPW) aims to bring BFME2 into Greece, 5th Century BCE.

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Notes on Building Geometry

Tutorial for Battle for Middle-earth BFME

Avatar of GothmogtheOrc

GothmogtheOrc

Category: Code
Level: Intermediate
Created: Sunday July 19, 2009 - 21:12
Updated: Tuesday July 21, 2009 - 13:28
Views: 4856
Summary: A brief explanation of certain features of building geometry

Rating

Staff says

4.0

Members say

4.0

Average

4.0/5.0

5 votes

Page 1 2 3 4
Because there is not much information out there about building Geometry, particularly some potential problems you may encounter, I've decided to write up a brief article about my experiences with getting the Geometry to work for my Minas Morgul castle in my Kings of the West mod.

Article Layout:
Page 1: Brief explanation of what Geometry is
Page 2: Exceptions to the rule (walkable buildings)
Page 3: Wall elevators and build up animations
Page 4: The Basics explained in-depth and some notes

Brief explanation of what Geometry is:
Geometry is the code that tells the game what is solid and what can be walked through, also what part of a unit or building is selectable. For units we call the geometry the Bounding Box. For most buildings we use the Geometry code in the ini files. But not all buildings use this code, for example anything that is walkable won't use this code but rather use something else.

Common building geometry and usage:
Like I said above, most buildings that you use or create will be bought from a build plot and will not be walkable and you'll be fine using the code:

              
Code
Geometry = BOX
GeometryName = Geo_Original
GeometryMajorRadius = 54.0
GeometryMinorRadius = 98.0
GeometryHeight = 50.0

in the building's INI file.

Also this geometry can be viewed in WorldBuilder if you load it up with your new mod files (see tutorial I wrote about how to do that) and go under View and then there should be an option View Bounding Boxes or similar. It might be under the Object Influences tab within the View list (I don't have it in front of me currently). Anyway, it will show you exactly where the Geometry is located based off the above code.

Next page: Exceptions to the rule.

Comments

Display order: Newest first

GothmogtheOrc (Team Chamber Member) - Tuesday July 21, 2009 - 13:26

Well I went ahead and redid the last page, should be much more helpful for the basics of geometry now.

Rob38 (Team Chamber Member) - Monday July 20, 2009 - 19:39

You should probably explain the differences between GeometryMajorRadius, GeometryMinorRadius, and GeometryHeight. ;)

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
16:31:50