Object preview size

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Object preview size

Post by NoQ »

Is it possible to change the scale of some of these icons? Why are they of so much different size, anyway?
scr.jpg
You do not have the required permissions to view the files attached to this post.
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Object preview size

Post by Reg312 »

as far i understand that is not icons, it is just models downscaled

several C++ functions operates with model scaling in preview
and we have few hardcoded constants for different type of models
e.g. in c-code we know that structure models should be scaled with X modifier

structures also have parameters height, width..
if you change this params to other values preview-icons scalling might be changed

ah i can point to function which operates with these preview icons


> Why are they of so much different size, anyway?

hardcoded stuff, size in preview depends on
- height, width of structure
- type of model (turret, structure etc.)
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Object preview size

Post by vexed »

As was pointed out, we don't really calculate the size of the object in question.
One of these days, it will be fixed. :stressed:
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.