Scale: changing the scale of an object

drdax

Member
Joined
Jun 11, 2015
Messages
133
Hi,

Can someone confirm the steps to change the scale of an object ?

I see via the SIE tool in the <objectname>.iff file the parameter for scale with false / true option.  Should I set the value to True?

Where do I set the scale parameter?

Thanks!
 

netyoda

Member
Joined
Oct 18, 2017
Messages
42
There's something in the component file (CMP) that allows scaling of X, Y and Z - not sure if it's only on meshes, but point the .apt to the .cmp and the .cmp to the .msh (I think, I need a LOT of clarification on this, this is info that Tyclo has given me).

Anyone else who can help on this, it's all appreciated.
 

Halyn

That One Guy
Staff member
Moderator
Joined
Jan 11, 2015
Messages
257
Location
Empire in Flames
Object IFF scaling doesn't work.

If you want to rescale a static mesh, you need to use a CMP (or the import/export scripts for 3DS Max). If you want to scale an MGN, you can rescale mobiles using the scale function in lua.
 

netyoda

Member
Joined
Oct 18, 2017
Messages
42
Thanks Halyn,

yes it's the CMP that we have working with paintings (single reference to mesh), but on a simple rectangle (tatooine pristine walls) I can't work out how to point it onwards to the mesh and LOD and get it to work. Is there a discussion or info around on how the CMP files work? Or should I go hunting for the patent files?

The other option is that I scale it in 3DSMAX and export it but I'd need a tutorial for that! I was a Lightwave boi back in the day and have been out of the 3D loop for so long that the tech has moved on a lot.

The wonderful Tahksomak has given me a bit of guidance on this and if successful I will document it for the community.
 
Last edited:

Halyn

That One Guy
Staff member
Moderator
Joined
Jan 11, 2015
Messages
257
Location
Empire in Flames
Reposted from MtG Discord.

TheTinyPebble02/25/2019


Sytner (I believe) posted this once change the template to string float[matrix,12] then to scale you can do, for example: to scale x,y,z by 30https://cdn.discordapp.com/attachments/307474522439680000/448898787558293506/unknown.png they're in appearance/component so make a new one for the statue and change the hierarchy from apt->lod->msh to apt->cmp->lod->msh and the cmp should contain a single PART entry pointing to the lod set the matrix just to identity matrix scaled by 3

 

netyoda

Member
Joined
Oct 18, 2017
Messages
42
Thanks again Halyn,

yes that's what I was doing - I see now Tiny's info on the hierarchy which is probably where I was going wrong.

Managed to sort out Mesh exports in MAX thanks to Tahksomak, so I scaled the mesh I wanted and exported it, converting the objects to editable meshes, ignoring the SHT export and extra panel and just exporting the mesh - it worked!

Once again, I love this community and the learning that's achieved together.
 
Last edited:

netyoda

Member
Joined
Oct 18, 2017
Messages
42
Now all I need to do is work out how to make it collidable :p
Those .flr files look like the business - anyone know how they work?
 

drdax

Member
Joined
Jun 11, 2015
Messages
133
thanks folks for the info!!
next question : if i want to change the relative position of a object in this method .. say a helmet dropped from inventory into a house - and have it start on the "floor" instead of the usual "head" position .. would I then adjust the PART in the cmp file - see pic please ... #4 or some other factor?
thanks in advance
 

Attachments

drdax

Member
Joined
Jun 11, 2015
Messages
133
found the answer - thanks for the info above too - have a great weekend
 
Top Bottom