#1
|
|||
|
|||
Overlaying Textures with Alpha Masks
Hey,
I need to overlay one or more textures with alpha masks on top of an object's original texture within Vizard. Will multitexturing work for this? What blend settings should I use? Ideally, the alpha masks on the additional textures would dictate how the textures are blended... I'm also having problems with texturing faces. I looked at a previous post that suggested using the following code in order to make the texture coordinates work: newtexture = viz.add(texture) newtexture.wrap(viz.WRAP_S,viz.REPEAT) newtexture.wrap(viz.WRAP_T,viz.REPEAT) This works when applying the texture to the default layer (textureNum 0) with the following code for example: self.head.texture(newtexture, 'geom_0') But it doesn't seem to work correctly for code like this (regardless of how I blend the textures afterwards): self.head.texture(newtexture, 'geom_0', 1) Any suggestions? Thanks! -Josh |
|
|