<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Texture Error!... in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485095#M6567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if textures cannot be found, then either the CGA code to define the texture path is wrong or the textures are not in the right place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sure your texture path is correct. maybe use print() to debug the issue. comment out all the code that you don't need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just work with the very basics you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the other issue with 2 CGA files with the same in different projects: that would be a bug. are you absolutely sure you dont' edit the same file just because it remains open when you open a different scene ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you provide a very simple reproduction ? that would be very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lemme know ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 11:15:45 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2013-12-13T11:15:45Z</dc:date>
    <item>
      <title>Texture Error!...</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485093#M6565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with my cga rule.I changed the location of the file,then i imported the file to CE again.But textures are lost.Only 2 of&amp;nbsp; texture image are shown as facade image.In fact,there are about 150 texture image.What can be the reason?...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally,assume that i changed something in cga file,but i did not save it.Although i did not save it ,the cga file is keeping all of the changes.The other problem is that when i use a cga file in 2 different projects and make some changes in cga file in of one of these projects,the cga file which was used in other project&amp;nbsp; also changes.This is so absurd:) Do you have an idea about that?...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#####################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My rule is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr binayukseklikhesabi=MEAN_Z&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr MEAN_Z = rand (0,200)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Roof_Ht = 1.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Group("Cephe Giydirme",2) @Order(1) @Description("If true, random textures are shown for facades")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Doku_Goster = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Group("Cephe Giydirme") @Order(2) @Range(2.9,5.2) @Description("in Meters")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Kat_Yuks = 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Group("Cephe Giydirme") @Order(3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Facade_Image = fileRandom("asset/Cepheler/Cep_*_Kat"+texFloors+"_*.jpeg") # potential texture which is high enough (see below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const texFloors = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 1&amp;nbsp; : 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 2&amp;nbsp; : 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 3&amp;nbsp; : 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 4 : 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 5&amp;nbsp; : 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 6 : 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 7 : 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 8 : 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case nFloors == 9 : 9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# after a texture with a compatible floor number has been randomly selected, the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# filename is parsed to get information how many tiles are in this image:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const texTiles = float(getRange(Facade_Image,"Pen",".jpeg"))&amp;nbsp;&amp;nbsp;&amp;nbsp; # truncate the file name to get actual number of tiles&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# for facade texturing (operating on the *current* geometry)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nFloors = rint(scope.sy/Kat_Yuks)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nTiles&amp;nbsp; = ceil(scope.sx/Kat_Yuks*0.75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# needed to setup the texture projection to the current facade so that the texture fits &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;getFacadeTexProjectionHeight&amp;nbsp; = scope.sy/nFloors*texFloors &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;getFacadeTexProjectionWidth&amp;nbsp; = scope.sx/nTiles*texTiles&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot--&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; alignScopeToAxes(y) s('1,0,'1)&amp;nbsp; # make it horizontal i.e. scale it flat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; extrude(binayukseklikhesabi)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; comp(f){side : Facade | top : Roof }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Facade Generation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr OBJECTID = 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Facade --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set(seedian,OBJECTID*30)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Facade(getFacadeTexProjectionWidth,getFacadeTexProjectionHeight,0,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Facade(w,h,offsetW, offsetH)--&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; case Doku_Goster == true :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; setupProjection(0,scope.xy,w,h,offsetW,offsetH) projectUV(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; texture(Facade_Image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Facade&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Roof#########################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const myRoofTexture = fileRandom("assets/Cati/*.jpg")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Group ("Roof") @Range ("Tip1","Tip2","Tip3","Tip4","Tip5")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr CatiTipi = "Tip1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roof --&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case CatiTipi == "Tip1" :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; roofHip (30,0.5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; comp(f) { all: CatiDuzlemleri }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case CatiTipi == "Tip2" : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; roofShed(15)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; comp(f) { all: CatiDuzlemleri }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case CatiTipi == "Tip3" :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; roofGable(45,0,0,false,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; comp(f) { all: CatiDuzlemleri }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case CatiTipi == "Tip4" :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; roofPyramid(45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; comp(f) { all: CatiDuzlemleri } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else: CatiDuzlemleri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CatiDuzlemleri --&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setupProjection(0, scope.xy, 8,8) projectUV(0) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; scaleUV(0,2,2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; texture("asset/Cepheler/kiremit.jpg")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 08:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485093#M6565</guid>
      <dc:creator>denizsenturk</dc:creator>
      <dc:date>2013-12-13T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Texture Error!...</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485094#M6566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are lots of Turkish words in this rule file,i don't know how much it can be useful for your help :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 08:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485094#M6566</guid>
      <dc:creator>denizsenturk</dc:creator>
      <dc:date>2013-12-13T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Texture Error!...</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485095#M6567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if textures cannot be found, then either the CGA code to define the texture path is wrong or the textures are not in the right place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sure your texture path is correct. maybe use print() to debug the issue. comment out all the code that you don't need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just work with the very basics you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the other issue with 2 CGA files with the same in different projects: that would be a bug. are you absolutely sure you dont' edit the same file just because it remains open when you open a different scene ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you provide a very simple reproduction ? that would be very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lemme know ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 11:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/texture-error/m-p/485095#M6567</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-13T11:15:45Z</dc:date>
    </item>
  </channel>
</rss>

