Add Texture


#1

Who can help me? when I use the example “Add Texture”, the result locate the left figure,
its color is gray?? but I use the Rhino Function … the color is normal(right figure)?

The “Add Texture” program whether lack of some thing?


(Dale Fugier) #2

Hi Jerry,

Rather than posting a screen capture, can you post your code that is not working (along with other needed files such as 3dm, png, etc.)?

– Dale


#3

Hi Dale, I think I already find the problem, SetBitmapTexture instead of SetBumpTexture

Dim matt As Rhino.DocObjects.Material
matt = RhinoDoc.ActiveDoc.Materials(material_indexx)
'matt.SetBumpTexture(image1_path)
matt.SetBitmapTexture(image1_path)
matt.CommitChanges()