EE-modders / CEM-tool

Tools for converting and modding Empire Earth 1 CEM files
GNU General Public License v3.0
12 stars 0 forks source link

Blender Transformations Error Message #2

Open MJHastings opened 2 years ago

MJHastings commented 2 years ago

Is it possible to add an error message when ‘accept all transformations’ has not been applied to all of the objects?

One way to implement it would be to look at the origin position and scale of each object and make sure they all say 0.

If not possible, never mind.

zocker-160 commented 2 years ago

Alright so I looked into this, sadly this is not as easy as it looks like at first.

The main issue is, that some objects do actually have values for rotation and location which are not 0 and they must not be 0 in order to look properly in the game.

One example would be nav_bismarck_10.cem where the back turrets need -180 in the rotation and the locaion is not 0 for Y and Z. (if you put it to 0 it will not be shown correctly in the game)

I currently do actually check if the scaling is 1.0 and if not a warning gets displayed:

Screenshot_20211105_021358

I you know any values I could check against, then let me know, but from my understanding right now, the scaling = 1.0 check is the only one I can do.

MJHastings commented 2 years ago

Ah ok, yes that makes sense. What about position? I assume the position of a terrestrial should not be scene centred.

zocker-160 commented 2 years ago

I assume the position of a terrestrial should not be scene centred.

While that is true, checking against that is quite hard, because the exporter would need to know which type of object / unit you are exporting. At this point this is not really possible, especially when ppl create completely new units.