Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 5:28 pm
All times are UTC + 0
How to find geometry of Object?
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  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  Mark this post and the followings unread

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  Mark this post and the followings unread

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
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Thu May 21, 2015 12:48 pm    Post subject: Re: How to find geometry of Object? Reply with quote  Mark this post and the followings unread

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
Technique
Civilian


Joined: 27 Jul 2018

PostPosted: Fri Jul 27, 2018 10:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Let me tag onto this question.

I get how to get the measurements of those boxes individually, but how to properly fill in the shape in the xml for 2 different boxes of same object? See screenshot.



trainstationcombined.JPG
 Description:
 Filesize:  50.98 KB
 Viewed:  3060 Time(s)

trainstationcombined.JPG



Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
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 answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
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

[ Time: 0.1543s ][ Queries: 14 (0.0133s) ][ Debug on ]