Jump to content

Mesh can only use 1 material?


Recommended Posts

So I am trying to get my mod into KSP and I am running into some material and texture problems. My model is using Squad textures like SXT but for now it's just using duplicate texures (exported as mu with textures). It looks normal and all in Unity but when I put it in KSP that's where things go crazy.

A screenshot of the part in Unity.

M4ZfLYs.png

A screenshot of the part in KSP

kZYb96d.png

I soon found out that it is because only one material is being used because I took out all the materials and used only one which is the MK 1-2 texture and this was the outcome. Looks similar to the one above using the cupola texture?

f9tbVOb.png

I am stuck on how to solve this because I don't think I can put all the textures into one texture since they are squad textures and I don't think SXT does that. Any help?

Link to comment
Share on other sites

You'll have to separate the parts of your model into different objects, so that each object will use only one texture. (So an object for all the faces that use mk1-2 texture, and one for all that use the cupola texture.)

Edited by StarVision
Link to comment
Share on other sites

You'll have to separate the parts of your model into different objects, so that each object will use only one texture. (So an object for all the faces that use mk1-2 texture, and one for all that use the cupola texture.)

Hmm...the hatch would be easy to separate but the shroud would be difficult. I have a texture on the inside of the shroud like the stock docking shroud and the outside with the mk1-2 texture and the nosecone on the top. Do you have any ideas on how I would separate that?

Link to comment
Share on other sites

Hmm...the hatch would be easy to separate but the shroud would be difficult. I have a texture on the inside of the shroud like the stock docking shroud and the outside with the mk1-2 texture and the nosecone on the top. Do you have any ideas on how I would separate that?

If you're using Blender, easiest way would be: (from Edit Mode) Push "P", select "By Material", and your model will automatically be divided into separate meshes depending on your material. As long as you don't move them, there will be no visible difference in Unity or KSP.

Javascript is disabled. View full album
Link to comment
Share on other sites

Hmm...the hatch would be easy to separate but the shroud would be difficult. I have a texture on the inside of the shroud like the stock docking shroud and the outside with the mk1-2 texture and the nosecone on the top. Do you have any ideas on how I would separate that?

Yep, do what noonespecial recommends. On the Unity side, what I do for the docking shroud (since I'm assuming you've already animated it) is duplicate the shroud, child the duplicate to the original (so it'll still move as one). Then you can swap the meshes for the new ones without having to re-do the animation, for that you can do:

Import the new model into Unity, click on the little arrow on the right handside of the model in the asset view and it should expand out to show you all the different meshes in the model file. You can then drag the relevant mesh file from there to where it says name (Mesh Filter) - mesh (E.g. if it's called Cylinder in blender, under the Transform module it'll say something like 'Cylinder (Mesh Filter)' with 'mesh Cylinder' underneath.

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