Have a look at the samples/Level2/DYN/ example, a texture is used there. ... texture_filename = 'ground.bmp' t = Texture(texture_filename) m = Graphic3d_MaterialAspect(Graphic3d_NOM_ALUMINIUM) #s = BRepPrimAPI_MakeCylinder(60, 200) display.DisplayShape(transformed_table,material=m,texture=t) ...
-jelle On May 1, 2010, at 6:19 PM, Nicholas Seward wrote: > Hi, > I am attempting to apply a texture. It partially works but the part > is still yellow tinted. My texture was only black and white. > > t = Texture('texture.bmp') > m = Graphic3d_MaterialAspect(Graphic3d_NOM_SILVER) > display.DisplayShape(myShape.shape(),material=m, texture=t) > > Thanks, > Nicholas Seward > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users