:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Fri Dec 15, 2017 7:58 pm
All times are UTC + 0
 Forum index » Modding Central » Command & Conquer 3 Editing Forum
How to find geometry of Object?
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Beethoven
Vehicle Driver


Joined: 05 May 2015

PostPosted: Tue May 05, 2015 6:38 pm    Post subject:   How to find geometry of Object? Reply with quote

i know how to make geometry but i have no idea about size of shape. how to measure it from model?

Code:

      <Geometry
         IsSmall="false">
         <Shape
            Type="BOX"
            MajorRadius="50.0"
            MinorRadius="10.0"
            Height="10.0"
            ContactPointGeneration="VEHICLE" />
      </Geometry>

Back to top
View user's profile Send private message
ravage
Soldier


Joined: 16 Jul 2005

PostPosted: Wed May 13, 2015 3:12 pm    Post subject: Reply with quote

there is a very helpful tool call TWGeometryShapeDump.ms, you create boxes in 3dsmax and it output its Geometry data.

Back to top
View user's profile Send private message
Madin
Cyborg Cannon


Joined: 05 Apr 2009

PostPosted: Thu May 21, 2015 12:48 pm    Post subject: Re: How to find geometry of Object? Reply with quote

Beethoven wrote:
i know how to make geometry but i have no idea about size of shape. how to measure it from model?

Code:

      <Geometry
         IsSmall="false">
         <Shape
            Type="BOX"
            MajorRadius="50.0"
            MinorRadius="10.0"
            Height="10.0"
            ContactPointGeneration="VEHICLE" />
      </Geometry>

From Golan:
"The Geometry defines an object's shape for collision detection. Basically, every object can have up to three different "shapes":
The first is the model, which defines the shape that is displayed to the players - this is purely cosmetic.
The second one is the OBBox or Selection box (which is, like bones, stored in a W3X file and thus usually linked to a model) - this defines where a unit can be selected. While it usually appears that one has to click on the Model to select a unit, technically you have to click the (invisible) OBBox.
The third one is the Geometry, which is the only one purely defined in the XMLs. The <Shape/> elements define an object's size for the purpose of collision - for example, this defines how close objects can be to each other and when a projectile actually hits the object. The <ContactPoint/> elements can be used to force attacking units to target specific locations on the object.

As a general rule, the OBBox and Geometry should roughly match the model while not being too complicated."
"Max should also use the regular X-Y-Z norm in that Z is height. Otherwise, you might have changed some settings. You can take the offset directly from Max' coordinates.
MajorRadius and MinorRadius define the radius in X (major) and Y (minor) direction, thus allowing you to form basic ellipses. This also applies to the Box shape, which uses Radius in the meaning of 1/2 edge length. For example, a box with MajorRadius=4, MinorRadius=6, Height=5 would have the the size of 8x12x5 (XxYxZ). "
_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Command & Conquer 3 Editing Forum
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise play the game below please contact the Administrator for help.


 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

Wildcard SSL Certificates
[ Time: 0.1057s ][ Queries: 11 (0.0040s) ][ Debug on ]