Creating AcDbMaterial object 4: Creating a textured material
Print This Post
![]() |
Author | Erhan Toker |
| Profession | Architect M.Sc. | |
| Autodesk Authorized Consultant | ||
| Software Specialist | ||
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.
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.
Related articles
Similar Posts
Rate this article:


July 1st, 2008 14:31
Hi,
Great article. Can you pls tell me when the next part will show up?
Thanks
July 2nd, 2008 09:45
Hello Tomasz,
please checkout the link http://www.dailyautocad.com/autocad/e-book-creating-render-materials-in-autocad/
July 2nd, 2008 11:39
Hello Tomasz,
We’re sorry for the first reply. We published this articles for a short time. There was no response and interest for Object ARX articles. So we decided to not continiue Object ARX articles. I’m afraid there is no article except these 4.
Thanks for the comment.