selfish_meme

Blender to Unity to KSP Orientation

Recommended Posts

Just made this picture so I could see the orientation I should model in using Blender to make sure it will come out right in KSP, I tried with and without the 90' rotation, it made no difference to the end result. I used .blend files because .fbx files give very strange results.

4H0PfZN.png

Here is the cube .blend file if you want to try it yourself

https://drive.google.com/open?id=1NGJ4WKkUXXHd5-8035tWpOZBOJVOFJHc

Part Making WorkFlow -> from this thread 

Blender:

- Make a high poly model/mesh

- Make a low poly mesh

- Make collider mesh

- UV unwrap

- Bake ambient occlusion

Graphics editor:

- Import ambient occlusion

- Texture model

- Export combined

Bump/normal map application:

- Bake bump/normal map

Modelling program (again):

- Apply textures

- Check and save

Unity:

- Set-up project file

- Set-up KSP PartTools

- Create scene with part

- Apply bump/normal map

- Apply specular

- Write part

DDS Loader:

- Convert textures to fast loading DDS files

Kerbal Space Program:

- Edit appropriate configuration file

- Load up and check

Edited by selfish_meme

Share this post


Link to post
Share on other sites

Good initiative! :)

here is what has saved me hours of headache at the beginning:

SHHNGNX.jpg

from the internet, tuned by myself.

note: Blender and Unity don't use the same coordinate system, and there is no way to match every axis when importing,
when importing a .blend model into unity by default the bottom is still the bottom (relative to the floor), but the Z in blender(up) is now Y in unity, X becomes -X and  Z becomes -Y in Unity. there is also a -90°/X notified in the the rotation field in Unity (i let this rotation and rotate the model in blender until it match what i want in Unity and so KSP).
when importing a part with a big hierarchy, it can by tricky if you want some child axis to be well oriented at the end (example: FXModuleLookAtConstraint pointing its Z axis to the target, control surface rotate around a transform X axis, etc...), so i found useful to include thoose tricky transform in an other child to rotate everything as needed (in blender you can rotate an object but you can also rotate the mesh inside this object in edit mode and don't change the object orientation).

I also tried this when desperate:
https://forum.unity.com/threads/blender-unity-rotation-fix.181870/
i don't understand what it did but it worked for some projects. :P

QZRArg6.png

by the famous @RoverDude

uP3ReTq.jpg

part orientation in the SPH, VAB and Unity by someone else, probably on this forum, i don't remember (thank's).

 

 

Edited by Skalou

Share this post


Link to post
Share on other sites

That's really good info, and much better than mine, the only advantage mine has is if you are starting with a cube primitive.

Share this post


Link to post
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.