AnsweredAssumed Answered

How to use a texture path outside of the project?

Question asked by Vinur on Nov 11, 2016
Latest reply on Nov 16, 2016 by CLau-esristaff

Hi everyone! I' relatively new to texturing with CityEngine and ArcGIS Pro. The starting issue was that texturing wall in ArcGIS Pro (v. 1.3.1) didn't work as expected, you can scale the texture, but only both sides at once. I have a photo of my wall and the extruded polygon where I want to drape it on, but it repeated the photo as a pattern. When scaling it larger, the image got cut off on top and bottom of the wall.

Thus, I changed to CityEngine to drape the texture on the wall manually with a rule file. In the rule file, I can specify UV, the file path and other parameters so that the image is not cut off, and rotated correctly. However, this only works as long as I have the rule in "MyProject/rules" and the texture photo in "MyProject/images/image.jpg". My problem is now that I want the image to be replacable so that I can share the rule package to a person and this person can use it in ArcGIS Pro for a wall, choose the path of the texture file and gets the textured wall as output. To enable the input of the texture path, I want to use the object attributes, so that the file path is written in a column of the attribute table.

However, it doesn't matter whatever I use as filepath, it just does not work at all. The only correct path in CityEngine was the relative path "/MyProject/images/image.jpg". I tried using the fileSearch, an absolute path "C:\users\user\ArcGIS\etc...", tried using "/" and "\" and even putting the texture file on a server. Nothing worked.

attr InfraImage = ""

Infra = InfraImage

Facade -->

I use the attribute "InfraImage" which is mapped to the object attribute "InfraImage". This object attribute then contains the path to the file. It is then used to texture the facade.


Does anyone know how include a path to a texture in a rule file?