We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

About function ApplyMaterialParameters() (included in ModelerAPI::TextureCoordinate)

Zhang
Participant

I wonder what this function is used for? How it will change texture coordinate?I couldn't find instructions for it anywhere, and there were no examples either, I was in dire need of help

1 REPLY 1
kovacsv
Booster

Archicad generates texture coordinates in a way that it fits perfectly if the texture is 1m x 1m in size and doesn't rotated. But in the Surface settings you can set the texture size and rotation. So the output will only be the same if you apply these parameters to the texture coordinates. This method must be called for every UV using the parameters from the corresponding material.

 

kovacsv_0-1673552495859.png