Jump to content


Photo

Scaling of Structures and Geometry issues

scling buildings bfme2

  • Please log in to reply
8 replies to this topic

#1 Bofur

Bofur

    The Bolicious One

  • Hosted
  • 1,766 posts
  • Location:England
  • Projects:Age of the Firstborn
  •  The Bolicious T3A Team Chamber Member

Posted 30 July 2012 - 02:12 PM

Is there a way to prevent the geometry issues produced from scaling objects in worldbuilder?
As when you scale, say, a wall, units can walk and shoot through it.
I'm not after the usual "use impassability and put normal scale objects inside the scaled one" answer.
I'm sure that there was another way used in the making of NJM's Minas Tirith map.
Anway, any ideas?

left64_by_obsidianlake-d5ruayp.pngAotF.pngright64_by_obsidianlake-d5ruf44.png


#2 _Haldir_

_Haldir_

    Mapper

  • Project Team
  • 1,203 posts
  • Location:Australia
  • Projects:The Dwarf Holds, The Elven Alliance: Community Edition
  •  T3A Team Chamber Member

Posted 30 July 2012 - 02:55 PM

Other than the two options you pointed out, no, i don't think so. Not using Worldbuilder at least.
It might be possible with a map.ini to scale an objects geometry to match an object, but you'd have to ask someone who knows more on coding than me. I know it's possible to 'displace' an objects geometry (essentially 'removing' it), so it's not a stretch to think that you could scale it instead. Although, it would also mean that all copies of that unit would be affected. I.e. if you also had a regular sized wall/building/rock/whatever, it would have geometry too large for it's scale.

Alternatively, if it's for a mod and you have a decent modeller, you could remodel the object and code it in as a separate object with the proper geometry. A neater solution, but whether the map justifies all that work is something again.

Have you tried asking NJM? Or someone else from the SEE team perhaps?

Posted Image Posted Image


#3 Bofur

Bofur

    The Bolicious One

  • Hosted
  • 1,766 posts
  • Location:England
  • Projects:Age of the Firstborn
  •  The Bolicious T3A Team Chamber Member

Posted 30 July 2012 - 03:38 PM

I tried doing the scale object in a map.ini, it's just that it still seemed to work just the same as if i'd scaled it in WB.
I will try asking someone from the SEE team, it's just that Naz has been inactive for a while...

left64_by_obsidianlake-d5ruayp.pngAotF.pngright64_by_obsidianlake-d5ruf44.png


#4 Nertea

Nertea

    ...lo sa raptor!

  • Hosted
  • 3,349 posts
  • Location:Vancouver, Canada
  • Projects:Star Villains and Space heroes, The Dwarf Holds
  •  T3A Chamber Member
  • Division:BFME/Unity

Posted 30 July 2012 - 04:55 PM

You need to resize the actual geometry in the object file, not the object scale. Generally it's located at the bottom of an object entry.

sig.png
I really don't do requests and my Arnor Soldier is not fit for BFME. Don't ask me for either.


#5 Bofur

Bofur

    The Bolicious One

  • Hosted
  • 1,766 posts
  • Location:England
  • Projects:Age of the Firstborn
  •  The Bolicious T3A Team Chamber Member

Posted 30 July 2012 - 05:05 PM

So if you scaled the object by 2 in the map, you would need to double these values:

GeometryMajorRadius = 99.0
GeometryMinorRadius = 35.0
GeometryHeight = 116.0

left64_by_obsidianlake-d5ruayp.pngAotF.pngright64_by_obsidianlake-d5ruf44.png


#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 30 July 2012 - 05:13 PM

Something like that yes, but there may be some slight rounding errors so to say, since the objects might be a bit bigger than simply twice the amount in the geometry. But yes that is the idea.
Ridder Geel

#7 Irenë Hawnetyne

Irenë Hawnetyne

    -

  • Hosted
  • 3,073 posts

Posted 30 July 2012 - 07:06 PM

If it's something you want to reuse over multiple maps, you may want to consider creating a ChildObject of the original in the main mod's file(s).

"Everyone's a hero when there's nowhere left to run."

 

Auxiliary Skarn, 2333rd Cohort


#8 Bofur

Bofur

    The Bolicious One

  • Hosted
  • 1,766 posts
  • Location:England
  • Projects:Age of the Firstborn
  •  The Bolicious T3A Team Chamber Member

Posted 30 July 2012 - 07:10 PM

T'will be just for the map you just saw in the mapping topic Fell.

left64_by_obsidianlake-d5ruayp.pngAotF.pngright64_by_obsidianlake-d5ruf44.png


#9 Nertea

Nertea

    ...lo sa raptor!

  • Hosted
  • 3,349 posts
  • Location:Vancouver, Canada
  • Projects:Star Villains and Space heroes, The Dwarf Holds
  •  T3A Chamber Member
  • Division:BFME/Unity

Posted 30 July 2012 - 08:35 PM

Also consider that if there is an Offset parameter for each element you'll have to change that too.

Imagine if your building was made of 3 smaller buildings, and each one had a box for geometry. If you just increased the size of each box, you wouldn't get a correct result - the boxes would be bigger, but as the whole building is bigger, each box would also have to be moved.

sig.png
I really don't do requests and my Arnor Soldier is not fit for BFME. Don't ask me for either.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users