Game Development Community

Replaceable textures

by Ben Jones · in General Discussion · 03/01/2006 (6:16 pm) · 2 replies

Hey, I hada little question. I think I already know it but I just want to confirm it. I made some quick examples so what im saying is clear.

Say I have a texture for my model. like this really ugly face. www.geocities.com/kelna2/Face.jpg
And i want people to be able to choose the eye color. So i would make a PNG with just hte eyes and tranparency everywhere else. www.geocities.com/kelna2/Eyes.png
and if the eyes and the face were put ontop of each other the eyes would fit over the blank eyes of the orignal texture.

Like this. or this. or this.
www.geocities.com/kelna2/FaceWBE.jpgwww.geocities.com/kelna2/FaceWGE.jpgwww.geocities.com/kelna2/FaceWYE.jpg
thats how it works right? from the artist's side anyway.

#1
03/01/2006 (7:41 pm)
You could, or you could make separate face textures, one with each different color eyes. You can then switch eye color by switching the whole skin for the face using the SetSkinName() method.
#2
03/01/2006 (7:57 pm)
Http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9694

That resource will do exactly what you need