Jump to content

Shared texture?


Recommended Posts

Is it possible to share the same single texture between several parts? I mean a single texture in memory and DIFFERENT models using it.

Right now I'm working on new parts. Just put part1.mu, part2.mu and texture.png is one folder and hope that both mu's will use it. Mu's are different shapes (not just resizes), texture is the same for both.

But it doesn't work like that. :( KSP somehow only uses part1.mu for displaying BOTH parts ingame, even though part2.mu was strictly written in part2.cfg. Separating files into different folder solves this issue, but it needs another copy of texture.png, what I was trying to avoid.

P.S. Yeah, I know, textures are not that big... generally... but why to spend memory on unneeded copies?

P.P.S. Greed is a virtue... sometimes... :wink:

Link to comment
Share on other sites

yes, textures generally the most memory expensive asset; always best to share across different parts if possible.

use this in the part config instead of mesh = blahblah.mu

MODEL{
model = GameData/your/part/path/part (no mu extension)
texture = texture1, GameData/your/textures/location/texture1
repeat texture lines as necessary.
scale = x,y,z
rotation = x,y,z
position = x,y,z
}

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