View Single Post
  #1  
Old 04-29-2010, 05:34 AM
guof6570969 guof6570969 is offline
Member
 
Join Date: Apr 2010
Posts: 6
Cool how to add texture to an object

Hi all,sorry to trouble you
this is my problem:
the code is :
myTex = viz.addTexture('lake3.jpg')
myScreen = viz.add('screen3.IVE' )#my model,contains a suface named "Plane01"
myScreen.setPosition(0,0, 60)
Plane = myScreen.getChild('Plane01')
Plane.rotate(1,0,0, 45)
import vizmat
matrix = vizmat.Transform()
matrix.setScale([1.5,1.5,1])
Plane.texture(myTex)
Plane.texmat(matrix)

but the result is :

the color of the model is only green

i think may be this is due to the Texture Coordinates
but what should i do now ?

I am a newer!
Reply With Quote