<?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: Problem with street crossings in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48908#M666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I've already solved the problem. Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can i find the upgrade to CE 2013? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 09:40:05 GMT</pubDate>
    <dc:creator>Maartenvan_Doornik</dc:creator>
    <dc:date>2013-12-17T09:40:05Z</dc:date>
    <item>
      <title>Problem with street crossings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48904#M662</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;I'm trying to texture streets in my model. I'm using the street data from Open Streetmap. There are different street types (residential, primary, secondary, cycleway, footway etc.) which I want to texture differently. However, at the crossings of the streets I can only apply one way of texturing. So at the moment all of the crossing have an asphalt texture, even at footways and residential streets, which are not textured with asphalt. Is there a way to make the texture of the crossings dependent of the streets? This is the rule that I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const avgLanewidth = 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr highway = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr type = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr shapeType = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;width = case type == "MAJOR": 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else : 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calcLanes(width) = width / ceil(width / avgLanewidth) + 0.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Street --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; comp(f){ all: StreetPart }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StreetPart --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case shapeType == "Sidewalk"&amp;nbsp; &amp;amp;&amp;amp; highway == "residential": Sidewalk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case shapeType == "Crossing":Crossing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="primary" || highway =="primary_link" : setupProjection(0,scope.yx,3.5,3) projectUV(0) texture("Asphalt.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="secondary" || highway =="secondary_link" :setupProjection(0,scope.yx,3.5,3) projectUV(0)&amp;nbsp; texture("Asphalt.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="tertiary" : setupProjection(0,scope.yx,3.5,3) projectUV(0) texture("Asphalt2.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="path" : setupProjection(0,scope.yx,3.5,3) projectUV(0) texture("Path.png") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="residential" : setupProjection(0,scope.yx,1,1) projectUV(0) texture("Straatstenen.png") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="service" : setupProjection(0,scope.yx,1,1) projectUV(0) texture("Straatstenen.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="footway" : setupProjection(0,scope.yx,3,2) projectUV(0) texture("Path.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="cycleway": setupProjection(0,scope.yx,3,2) projectUV(0) texture("Cycleway.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="unclassified": setupProjection(0,scope.yx,1,1) projectUV(0) texture("Straatstenen.png") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="living_street":setupProjection(0,scope.yx,1,1) projectUV(0) texture("Straatstenen.png") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case highway =="pedestrian":setupProjection(0,scope.yx,3.5,3) projectUV(0) texture("Path.png") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else : case shapeType == "Sidewalk": Sidewalk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; else: NIL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JunctionEntry --&amp;gt; Street&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sidewalk --&amp;gt; extrude (0.2) setupProjection(0,scope.xz,2,2) projectUV(0) texture("Stoep.png")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Junction --&amp;gt; color("#aaaaaa")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Crossing--&amp;gt; setupProjection(0,scope.yx,3.5,3) projectUV(0) texture("Asphalt2.png")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Dec 2013 19:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48904#M662</guid>
      <dc:creator>Maartenvan_Doornik</dc:creator>
      <dc:date>2013-12-15T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with street crossings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48905#M663</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;please also watch my video, it may answer a few questions on the CGA side of things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/6QuaX7GBsDg" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;are you on CE 2013 already ?&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;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 11:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48905#M663</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-16T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with street crossings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48906#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I'm using CE 2012.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 13:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48906#M664</guid>
      <dc:creator>Maartenvan_Doornik</dc:creator>
      <dc:date>2013-12-16T13:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with street crossings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48907#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In general, the answer to your question is no. This is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a simple, but logic reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because 1 crossing can be shared by both a huge street and a tiny street. So who 'wins'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What' I'd do [and that's now better possible in 2013] is use Python to find the 'widest' street on each street node, grab it's type and depending on that type, set the crossing parameters or Start Rule. But this can only done with Python ( or manually of course ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that CE 2013 will work also with you 2012 license. No reason not to update .. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Note though that we strongly recommend to create a new Workspace for 2013 and leave the 2012 workspace. Just migrate the projects over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this input helps !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48907#M665</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-17T09:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with street crossings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48908#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I've already solved the problem. Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can i find the upgrade to CE 2013? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48908#M666</guid>
      <dc:creator>Maartenvan_Doornik</dc:creator>
      <dc:date>2013-12-17T09:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with street crossings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48909#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;contact your local distributor from where you got the license or download the new trial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 12:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-street-crossings/m-p/48909#M667</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-17T12:39:47Z</dc:date>
    </item>
  </channel>
</rss>

