View Single Post
Old 04-28-2008, 10:51 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
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:
tex = viz.addTexture("red2.gif",wrap=viz.REPEAT)
Vizards default wrap mode is viz.CLAMP_TO_EDGE, which does not allow for texture coordinates outside the range of [0,1].
Reply With Quote