Scale: changing the scale of an object

drdax

New Member
Jun 11, 2015
129
0
0
#1
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

New Member
Oct 18, 2017
30
10
3
#2
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

Moderator
Staff member
Moderator
Jan 11, 2015
237
14
18
34
www.writingunderduress.com
#3
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

New Member
Oct 18, 2017
30
10
3
#4
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

Moderator
Staff member
Moderator
Jan 11, 2015
237
14
18
34
www.writingunderduress.com
#5
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

New Member
Oct 18, 2017
30
10
3
#6
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 mesahes, 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.
 

netyoda

New Member
Oct 18, 2017
30
10
3
#7
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?