About Store Forum Documentation Contact



Post Reply 
texture mapping w/ color change
Author Message
Brainache Offline
Member

Post: #1
texture mapping w/ color change
Heya,

Trying to find a way to do the following:

Suppose you have a model of a shirt... and its textures with a pattern... and you want to be able to set a primary & secondy color of the texture, so the shirt pattern changes color...

I could see using the material.color for a single color change, but not sure how you could do it for more than 1 color..

Maybe by applying a material for each color? with alpha maps on the material so it only draws a certain part?

that doesnt sound very effecient to me....

any other ideas on how to do this?
06-01-2009 03:51 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
Re: texture mapping w/ color change
Hi,

Currently this can be done only by using multiple materials for each MeshPart, and then setting custom colors for each Material separately.

However you can implement this manually by writing custom shaders according to the tutorials.
06-01-2009 04:03 PM
Find all posts by this user Quote this message in a reply
Brainache Offline
Member

Post: #3
Re: texture mapping w/ color change
Wow... i just gotta say: I've been fairly intimidated by shaders for some reason.. dont know much about them... but I took a shot at this by experimenting with the 'solid mode shader' tutorial...

1.5 hours later.. and it works perfectly... and does more than I would have thought possable...

Very nice!
06-01-2009 06:19 PM
Find all posts by this user Quote this message in a reply
Post Reply