Jump to content

Having a bit of an issue with models between unity and KSP


Recommended Posts

I have just started trying my hand at adding parts to KSP. I know the basics of modeling and I roughly understand how to get my model into unity and put that model in-game. I can get it to show up and attach properly. I understand the general idea behind setting up part.cfg files.

My issue is that after putting the model in game, the proportions are not the same as in blender or unity.

5

The model looks right in both blender and unity, but in game it's too wide.

Is there something that I'm overlooking or doing incorrectly? Is there a current guide anywhere on putting models into the game correctly?

Any help would be appreciated as I would really like to start modding for this awesome game.

Link to comment
Share on other sites

ijbJzZ7.png

The 2 areas I highlighted are the scale controls in Blender and Unity. Make sure they're set to 1.0 to both if you want to come out at a 1x ratio to how you modeled it. From Blender you can hit ctrl+A from Object mode and 'Apply Scale" to save any scaling you did while in Object mode down to the mesh, or zero it out to return to the original scale.

You can also zero out the scales in Unity as well.

Then there is also the scaling you can do in a config file as well.

If you're using the stock 'model = model.mu' line near the top, then the only line that can apply scaling is:

rescaleFactor = 1

The default value for rescaleFactor is actually 1.25, which means your model will be 1.25x bigger than it is in Unity and Blender. So if you don't see rescaleFactor in the config, or its set to something other than 1 then you're model is being resized.

If you happen to be using a MODEL{ node in your config, then it also have a scale setting inside of its brackets, and it interacts weirdly with rescaleFactor so you would need to share your config file so we can help you.

So if you have sorted out the scales in Unity/Blender and its still giving you trouble, post up some screenshots and the config and we'll go from there.

Link to comment
Share on other sites

Amazing! thank you very much for the quick response.

I had a feeling it had to do with the scaling values in blender because setting all of those to 1 made the model look exactly like it did in my screenshot of KSP. I actually tried playing with the scale settings you highlighted in blender beforehand, but changing the values just changed the model (I was unaware of the apply scale thing until now) I actually had the rescaleFactor line set to .25 just to get it to the size in the screen shot :blush:

This works exactly as it should now though, thank you again!

Would you happen to know of any in depth modding tutorials that are more or less current for this version of KSP?

I feel like it would be better if I had something to reference in case I get stuck on another issue rather than posting "help me" on the forums each time.

Link to comment
Share on other sites

Pretty much everything you'll need to know can be found by looking through the Modding Info Compilation: http://forum.kerbalspaceprogram.com/threads/25013-Compilation-of-modding-information-links-for-0-19-20-21-22-Last-update-23rd-Nov

And if its not in there, there's nothing wrong with posting a topic about it, someone will help you :)

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...