When I did what you suggested (adding a new function to my person class to texture the head with jpegs)
def changehead(self, texture):
newtexture = viz.add(texture)
self.head.texture(newtexture, 'geom_0')
And I called the function using some arbitrary key:
person1.changehead('disgust.jpg')
The head in the world turns black...the texture doesn't look like it's been applied to the head...am I doing something wrong?
|