Creating AcDbMaterial object 4: Creating a textured material



Author Erhan Toker
Profession Architect M.Sc.
  Autodesk Authorized Consultant
  Software Specialist
e-mail  

AutoCAD 2007

Now, we have enough information related to materials. So, we can create a general textured material. We can define texture properties by creating another AcGiMaterialMap object in addition to the standard color. Textures are made up of pictures that are already existing in the drawing or saved as a file in hard drive. In our example function, we assume that texture file ( tName ) is stored inside hard drive as a picture file. Here is our function ( Fig. 1):

Fig.1
Fig. 1.

To assign properties like Tile, Crop etc… to material definition, you can use AcGiMapper object. However, I suggest tat you should do this operation by the mapping which will be assigned to the material to be texturized. That will be the subject of our next article.

Have a nice day.

Similar Posts

Rate this article:

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

3 Responses to “Creating AcDbMaterial object 4: Creating a textured material

Leave a Reply