#1
|
|||
|
|||
Same texture, but different..
I want to have a model with one texture that can be swapped with another using model.texture("new_tex.jpg"). When swapping back I noticed that the new "first" texture was much darker than the original.
I have attached a scene with two cubes which demonstrates the problem. What is happening? |
#2
|
|||
|
|||
I tried adding a cube without any textures, thinking maybe the original texture blended with the new original, but then it turned completely black. I also tried playing around with model.appearance() and texblend, but to no avail.
Doesn't anyone have a clue as to what is going on? |
#3
|
|||
|
|||
The cube uses negative values for the texture coordinates. This means you need to enable wrapping on the texture. Try using the following code when adding the texture:
Code:
tex = viz.addTexture("red2.gif",wrap=viz.REPEAT) |
#4
|
|||
|
|||
Yup, that was it. Thanks a bunch!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D Texture Mapping in Vizard? | stefs | Vizard | 2 | 03-25-2008 03:34 AM |
missing parts of head texture | sjp | Vizard | 4 | 10-10-2006 01:10 PM |
how I can get my texture to appear exactly as is defined | mspusch | Vizard | 1 | 04-23-2005 12:12 PM |
avatar head texture issues | rconrey | Vizard | 3 | 11-17-2004 04:05 PM |
How to simply texture an avatar's head with a jpeg graphic? | vr_boyko | Vizard | 3 | 10-26-2004 10:44 AM |