<?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: Doing UV split on roundabout Street shape in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318976#M4393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: obrjo181&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you've just forgotten to set up the scope and projection for your texture in your rule file, so your code should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Street --&amp;gt;
 split(v, unitSpace, 0)
 {
&amp;nbsp; 3: TestShape
&amp;nbsp; | 3: TestShape
 }
 
TestShape --&amp;gt;
 setupProjection(0,scope.xz, scope.sx, scope.sy) 
&amp;nbsp;&amp;nbsp; projectUV(0) 
 tileUV(0, 1, 1)
 texture("builtin:uvtest.png")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the textures will be displayed properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:09:39 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-11T15:09:39Z</dc:date>
    <item>
      <title>Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318975#M4392</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 get a UV split on roundabouts working, but apparently CE messes up my geometry. Originally I work in a bigger rule file, but I could reproduce it with this simple snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;version "2012.1"&amp;nbsp; Street --&amp;gt;&amp;nbsp; split(v, unitSpace, 0)&amp;nbsp; { &amp;nbsp; 3: TestShape &amp;nbsp; | 3: TestShape&amp;nbsp; }&amp;nbsp;&amp;nbsp; TestShape --&amp;gt;&amp;nbsp; tileUV(0, 1, 1)&amp;nbsp; texture("builtin:uvtest.png")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When applied to a roundabout Street shape, I get the following model:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22125[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is it with the source shapes visible, too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22126[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The wireframe looks right, but the geometry is messed up (see the z-fighting in the screenshots). When I export the model and view it, the problem is more visible:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22124[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how I could work around this? It's really annoying because I try to split the shape into individual driving lanes and adding features like separator lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 12:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318975#M4392</guid>
      <dc:creator>AndreasHeldt</dc:creator>
      <dc:date>2013-02-24T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318976#M4393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: obrjo181&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you've just forgotten to set up the scope and projection for your texture in your rule file, so your code should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Street --&amp;gt;
 split(v, unitSpace, 0)
 {
&amp;nbsp; 3: TestShape
&amp;nbsp; | 3: TestShape
 }
 
TestShape --&amp;gt;
 setupProjection(0,scope.xz, scope.sx, scope.sy) 
&amp;nbsp;&amp;nbsp; projectUV(0) 
 tileUV(0, 1, 1)
 texture("builtin:uvtest.png")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the textures will be displayed properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318976#M4393</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318977#M4394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The texture is just fine, and is correctly displayed. The goal is to split the Street shape of the roundabout into several rings by doing a split along the v axis. CE is messing up the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fyi, with your solution, I get a completely filled circle. Textures show fine, but there is just too much and, more importantly, messed up geometry here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 21:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318977#M4394</guid>
      <dc:creator>AndreasHeldt</dc:creator>
      <dc:date>2013-02-24T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318978#M4395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: zsoftware&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a pretty severe problem - we're forced to remove all roundabouts from our city and as blocks reconfigure, our artists have to rebuilt parts of the city. No professional opinion here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 12:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318978#M4395</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-27T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318979#M4396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: matthiasbuehler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not '&lt;/SPAN&gt;&lt;STRONG&gt;official support&lt;/STRONG&gt;&lt;SPAN&gt;'. I'm basically doing &lt;/SPAN&gt;&lt;STRONG&gt;free support work &lt;/STRONG&gt;&lt;SPAN&gt;here to help out the professional support analysts. If you would like to get official tech support, please contact your local Esri Distributor and ask them for an annual Subscription.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I simply did not yet have the time to ask the developer about this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems the UV split has the issue of splitting such round geometries with continuous UVs. I'll report the problem as a bug. The best tip at the moment is to use premodeled assets for the roundabouts via i() to mimic the UV split.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 15:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318979#M4396</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-27T15:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318980#M4397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sorry, didn't knew that - I've contacted our local distributor's support now, too. Hopefully they can sort this out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime I'll look if it is possible to pre-model the geometry I need - we're doing some post-export mesh analysis to get precise street data but the current approach isn't working on roundabouts because of this bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oliver&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 15:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318980#M4397</guid>
      <dc:creator>AndreasHeldt</dc:creator>
      <dc:date>2013-02-27T15:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318981#M4398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: matthiasbuehler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hey ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's a fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Street --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) {all :&amp;nbsp; &amp;nbsp; split(v, unitSpace, 0) &amp;nbsp; { &amp;nbsp;&amp;nbsp; 3: TestShape &amp;nbsp;&amp;nbsp; | 3: TestShape &amp;nbsp;&amp;nbsp; | ~1 : X. &amp;nbsp; }&amp;nbsp; }&amp;nbsp;&amp;nbsp; TestShape --&amp;gt;&amp;nbsp; tileUV(0, 1, 1)&amp;nbsp; texture("builtin:uvtest.png")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you see that you go first to each individual segment shape, then use the uv-split.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the issue is here that if a 'closed shape' is detected, the hole is filled automatically. for some usages, this is wanted, in this case here it is not wanted. we'll have to rethink the heuristics on this. I'll create a ticket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for reporting this ! very interesting case !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 07:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318981#M4398</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-28T07:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318982#M4399</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've tried it and have to say it works very well, the mesh now looks right! Unfortunately this approach seems to make the u coordinates discontinuous along the u axis. We're strongly relying on continuous UV-Coordinates for detecting driving lanes later on so this fix only works half for us. I'll look if we can maybe circumvent this by treating roundabouts differently when figuring out the exact street layout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for this fix!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318982#M4399</guid>
      <dc:creator>AndreasHeldt</dc:creator>
      <dc:date>2013-03-01T06:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Doing UV split on roundabout Street shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318983#M4400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: matthiasbuehler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that's no problem at all, just do the tileUV before. &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Street --&amp;gt;
 tileUV(0, 1, 1)
 comp(f) {all :
 split(v, unitSpace, 0)
 {
&amp;nbsp; 3: TestShape
&amp;nbsp; | 3: TestShape
 }
 }
TestShape --&amp;gt;
 texture("builtin:uvtest.png")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/doing-uv-split-on-roundabout-street-shape/m-p/318983#M4400</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T15:09:42Z</dc:date>
    </item>
  </channel>
</rss>

