Hi,
I haveshape points with type and height for individual trees.
I would like to know how to write a rule that I can use to place the .obj models using
the attributes from the shape-file. The points are loaded in CE at their right
locations.
I manage to
get the right height and rotate them use this rule from the forum, but I get
Unknown Texture… The mtl is in the assets folder.
attr Hojd = 0
attr TREETYPE = "Witch_Hazel_Model_0"
cowTex = ("assets/Trad/Witch_Hazel_Model.mtl")
getAssetPath = ( "assets/Trad/" + TREETYPE + "/Witch_Hazel_Model_0.obj" )
@StartRule
TREE -->
alignScopeToAxes(y)
s(0,Hojd,0) center(xz)
r(0,rand(360),0)
i(getAssetPath)
texture(cowTex)
Tree.
Best regards Tomas