Can anyone help finding out model sizes?

Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
edited August 2012 in Modding
I am trying to create physics boxes for models in game. The only problem is you have to manually define all the extents. I have a model I am defining the extents for, and i've compared it in model viewer to the skulk for example, by opening different windows, but there is no way to actually find out the unit size of the model.

Can anyone tell me a way to do this? Or is it a case of keep playing with values until I get one that feels right?

Edit: extents are also done as a fraction of 1, ie 0.45, what unit size refers to 1?

Comments

  • HuzeHuze Insightful Join Date: 2003-11-12 Member: 22724Members, NS1 Playtester, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    <!--quoteo(post=1958682:date=Aug 7 2012, 04:39 PM:name=Soul_Rider)--><div class='quotetop'>QUOTE (Soul_Rider @ Aug 7 2012, 04:39 PM) <a href="index.php?act=findpost&pid=1958682"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I am trying to create physics boxes for models in game. The only problem is you have to manually define all the extents. I have a model I am defining the extents for, and i've compared it in model viewer to the skulk for example, by opening different windows, but there is no way to actually find out the unit size of the model.

    Can anyone tell me a way to do this? Or is it a case of keep playing with values until I get one that feels right?

    Edit: extents are also done as a fraction of 1, ie 0.45, what unit size refers to 1?<!--QuoteEnd--></div><!--QuoteEEnd-->
    What do you mean you have to manually define the extents? Can't you just use GetModelExtents()? Or are you saying that GetModelExtents() uses some predefined values and doesn't actually load it from the model?
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    edited August 2012
    Do'h, I was using GetExtents, which uses the Extents specified in techdata. Each of those extents for skulk, onos, etc, is manually defined in the file.

    I will try GetModelExtents, lol :)

    ------------------------------------------------------------------------------------------------------------------------------------

    EDIT

    Just tried it, and GetModelExtents is just a wrapper around GetExtents(self.boneCoords)

    My model has no bone coords defined, so doesn't work. It is just a box, so I have to use GetExtents() and manually specify the values.

    Maybe you can suggest a way to pick up the bounding box of a model, rather than the bones?
  • HuzeHuze Insightful Join Date: 2003-11-12 Member: 22724Members, NS1 Playtester, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    Oh, I didn't realize that's how it worked. I have no ideas then, sorry.
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    Here is my progress so far on manually setting the extents, as you can see I am quite a way out!!

    The 'lego' type crate is the one I have been trying to set the extents on, the bigger box is just a copy of the same extents. There has got to be a less painful way of doing this than going backwards and forwards like this :P

    <center><object width="450" height="356"><param name="movie" value="http://www.youtube.com/v/40L4mj1KuFs"></param><embed src="http://www.youtube.com/v/40L4mj1KuFs" type="application/x-shockwave-flash" width="450" height="356"></embed></object></center>
Sign In or Register to comment.