Jump to content

How to scale part models in CFG? [1.3]


Recommended Posts

  On 10/9/2017 at 9:35 PM, UbuntuLinuxKing said:

What do you mean by this?

Expand  

He means that you have to use the right scale factor to scale it from 2.5m to 3.75m.

In this case it would be (3.75/2.5), ergo:

rescaleFactor = 1.5

As far as i know, you also have to scale the position values for the nodes (the first three values), therefore you have to multiply them also by 1.5. e.g.

from:

node_stack_top = 0.1, 0.32, 0.2, 0.0, 1.0, 0.0, 2

to:

node_stack_top = 0.15, 0.48, 0.3, 0.0, 1.0, 0.0, 2

You can also set the seventh parameter to 3 to have the node in the size as the other nodes in the 3.75m scale

Edited by Nils277
Link to comment
Share on other sites

  On 10/10/2017 at 1:23 PM, Nils277 said:

As far as i know, you also have to scale the position values for the nodes (the first three values), therefore you have to multiply them also by 1.5. e.g.

Expand  

When using rescaleFactor, the nodes should stay in their correct positions relative to the part.

this was not the case with changing the scale values of the model itself.

Edited by Nightside
Link to comment
Share on other sites

  On 10/11/2017 at 1:35 PM, Nightside said:

When using rescaleFactor, the nodes should stay in their correct positions relative to the part.

this was not the case with changing the scale values of the model itself.

Expand  

Using just rescaleFactor worked when sizing UP a 2.5m to 3.75m, but sizing them DOWN didn't work, even after I multiplied the node_stack definitions like @Nils227 said.

Link to comment
Share on other sites

  On 10/11/2017 at 2:09 PM, UbuntuLinuxKing said:

Using just rescaleFactor worked when sizing UP a 2.5m to 3.75m, but sizing them DOWN didn't work, even after I multiplied the node_stack definitions like @Nils227 said.

Expand  

Never mind, my own stupidity was causing the problem

  On 10/10/2017 at 1:23 PM, Nils277 said:

He means that you have to use the right scale factor to scale it from 2.5m to 3.75m.

In this case it would be (3.75/2.5), ergo:

rescaleFactor = 1.5

As far as i know, you also have to scale the position values for the nodes (the first three values), therefore you have to multiply them also by 1.5. e.g.

from:

node_stack_top = 0.1, 0.32, 0.2, 0.0, 1.0, 0.0, 2

to:

node_stack_top = 0.15, 0.48, 0.3, 0.0, 1.0, 0.0, 2

You can also set the seventh parameter to 3 to have the node in the size as the other nodes in the 3.75m scale

Expand  

How would I use that math to scale down a part? I have a 3.75m part, and I want it to be 2.5m. So I run it through a calculator (2.5/3.75) and I get 0.66 repeating. Would just 0.66 in the CFG do, or am I doing my math wrong? EDIT: 0.66 didn't work AT ALL. It did absolutely nothing. :( 

Edited by UbuntuLinuxKing
Link to comment
Share on other sites

  On 10/11/2017 at 6:50 PM, UbuntuLinuxKing said:

Never mind, my own stupidity was causing the problem

How would I use that math to scale down a part? I have a 3.75m part, and I want it to be 2.5m. So I run it through a calculator (2.5/3.75) and I get 0.66 repeating. Would just 0.66 in the CFG do, or am I doing my math wrong? EDIT: 0.66 didn't work AT ALL. It did absolutely nothing. :( 

Expand  

Yes .66 should work. Check to make sure u didn't change scale instead of re-scale. Also, u don't need to change anything in the attachment nodes.

Edited by harrisjosh2711
Link to comment
Share on other sites

  On 10/11/2017 at 9:23 PM, UbuntuLinuxKing said:

No, I definitely changed rescaleFactor. Maybe it's just the model - I'll try a different one.

Expand  

 

  On 10/11/2017 at 9:46 PM, Bottle Rocketeer 500 said:

The ideal RescaleFactor for 3.75 to 2.5 is actually .65

Expand  

Never mind! Again,my own stupidity - the part model was broken. :P

Link to comment
Share on other sites

There is another method if you're feeling creative.

MODEL
	{
		model = Squad/Parts/Resources/ISRU/ISRU
		scale = 0.25,1,0.25
		
	}

 

Standard values are 1.0. In this example the following shape is the result:

4lhgKuz.png

And in case you're wondering why I did that:

Tt6pB0O.png

I turned the ISRU into a cyclotron and the ion engine into a nozzle. It's a proton cannon.

 

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...