Jump to content

[SOLVED] Texture show in Unity but invisible in KSP


Recommended Posts

Hi,

I am missing something for sure, if I import a texture and set the material in Unity like ksp/diffuse all is right, but in game it appear as it would have wrong normal ( some faces are invisible ), while exporting the model with no UVmap from blender show correct in game ( but of course with no texture )

What am I doing wrong?

Edited by brusura
rewrote it...
Link to comment
Share on other sites

Sooo trying to narrow down the problem I made a simple cylinder 10 meters long and 2 meters large, mapped every faces of it then imported in unity and then in ksp all is working fine, what I see is that with my original model I see two materials in unity when in blender I got only one, why is that? Can I get rid of it somehow? I guess that is what causing the problem.

hG8RwlX.png

RsqiWuG.png

I got the mk2 model using a plugin for blender made by taniwha http://forum.kerbalspaceprogram.com/threads/43513-Blender-mu-import-export-addon , maybe something dirty left behind during the import?

Link to comment
Share on other sites

What are your material import settings in Unity? They should be on the first tab of the inspector when you click on the "mk2bay" file in your Assets/mk2bay folder. You can try changing the settings or turning off import materials and see what happens.

Link to comment
Share on other sites

You can get rid of one in Unity just be changing size to 1 under Mesh Renderer -> Materials

Size is how big the material list is (2 elements)

The second one will be deleted so change the first one as needed (suggest KSP/Bumped Specular based on your current choices)

Link to comment
Share on other sites

Think I got it, my model has 3 meshes, for testing purpose I had partially unwrap only one of these meshes, for his mesh some faces were not texturized at all, so when importing, unity see one mesh with UVmap data but not for all faces of the mesh so unity create a new material out of nowhere for the faces with no UVmap.

So I went back in blender unwrapped all the faces for the mesh and now unity import only one material as intended and in ksp the model is showing correct and texturized

Link to comment
Share on other sites

Does anyone know how to get multiple textures in one mesh? For me, Unity makes moar materials when scared, so I end up having a ship full of materials and most not showing because KSP is KSP. :P

You need to separate out the mesh that you are applying the other materials too. I just found out the hard way my self that KSP only allows one material per mesh. For instance, the outside of my Carrier hull and the doors are all fine in KSP but the inside was still part of the main mesh and I added a separate material so I could use a whole new sheet for the inside. That works fine everywhere else but KSP. I had to separate the inside mesh from the outside using separate by selection in Blender. Then I was able to use another sheet and not have invisible cargo bay. The Hotkey is "P" in edit mode.

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