<?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 How should i modify the roof code? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723633#M9536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i want to achieve the roof like the picture A.The code i wrote is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;roof--&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; roofGable(30, 0, 0, false)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setupProjection(0,scope.xy,getTextureSizeU,getTextureSizeV) projectUV(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set(material.dirtmap,getRoofTexture) setupProjection(2,scope.xy,1,1) projectUV(2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i applied the code to the shape,i get the result as the picture B.The lower part picture was misty.I did some experiments.I drew two shapes which the differences between them were the length and width.The picture C represents the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; how should i modify the code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A:[ATTACH=CONFIG]29304[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B:[ATTACH=CONFIG]29302[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:[ATTACH=CONFIG]29303[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Nov 2013 06:38:21 GMT</pubDate>
    <dc:creator>xinlongliu</dc:creator>
    <dc:date>2013-11-24T06:38:21Z</dc:date>
    <item>
      <title>How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723633#M9536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i want to achieve the roof like the picture A.The code i wrote is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;roof--&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; roofGable(30, 0, 0, false)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setupProjection(0,scope.xy,getTextureSizeU,getTextureSizeV) projectUV(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set(material.dirtmap,getRoofTexture) setupProjection(2,scope.xy,1,1) projectUV(2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i applied the code to the shape,i get the result as the picture B.The lower part picture was misty.I did some experiments.I drew two shapes which the differences between them were the length and width.The picture C represents the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; how should i modify the code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A:[ATTACH=CONFIG]29304[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B:[ATTACH=CONFIG]29302[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:[ATTACH=CONFIG]29303[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 06:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723633#M9536</guid>
      <dc:creator>xinlongliu</dc:creator>
      <dc:date>2013-11-24T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723634#M9537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: BTLeslie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, I'm sure Matthias will respond if there is a better way of doing this but I have found that if you put and extra point in a building edge it will trick CE into drawing that edge as a hip end instead of a gable end so you can create odd-ended roofs like in the picture I attach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]29309[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 05:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723634#M9537</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-25T05:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723635#M9538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, I'm sure Matthias will respond if there is a better way of doing this but I have found that if you put and extra point in a building edge it will trick CE into drawing that edge as a hip end instead of a gable end so you can create odd-ended roofs like in the picture I attach.&lt;BR /&gt;[ATTACH=CONFIG]29309[/ATTACH]&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for reply.The problem i come across is mainly about the misty of the picture when i project.If i divide the model into two parts,the upper part's map is projected correctly.But the lower part's map is misty as the picture B i supplied.I wonder if there is a solution to this problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723635#M9538</guid>
      <dc:creator>xinlongliu</dc:creator>
      <dc:date>2013-11-25T09:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723636#M9539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: BTLeslie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah haa - that'll teach me to look at the pictures and not read properly (actually I'll probably never learn) - I'd try changing the projection to scope.xz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723636#M9539</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-25T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723637#M9540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ah haa - that'll teach me to look at the pictures and not read properly (actually I'll probably never learn) - I'd try changing the projection to scope.xz&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yeah.I have also tried the "scope.xz" which caused another problem.The lower part's map is projected correctly,nevertheless the upper part's picture is misty.Is there a solution which could project the picture correctly on the lower and upper part at the same time.The picture A is screen shot from the esri scene.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723637#M9540</guid>
      <dc:creator>xinlongliu</dc:creator>
      <dc:date>2013-11-25T10:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723638#M9541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: BTLeslie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to apply different projections to different elements of the model - the comp(f){......} function may help you split the model into the various parts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723638#M9541</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-25T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723639#M9542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you need to apply different projections to different elements of the model - the comp(f){......} function may help you split the model into the various parts.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How should i write the code if i split the roof such as the picture B's&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 04:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723639#M9542</guid>
      <dc:creator>xinlongliu</dc:creator>
      <dc:date>2013-11-26T04:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: How should i modify the roof code?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723640#M9543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: BTLeslie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll want to split the roof into its component parts using comp(f){} then apply the materials to those separate parts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;roof--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;roofGable(30, 0, 0, false)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;comp(f){top:roofTop|side:roofSide}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;roofTop--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...material definition....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;roofSide--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...material definition....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if splitting it into top and side doesn't create enough separate parts you can split it into top,bottom,left,right,front,back if you like.&amp;nbsp; It's all in the help docs and tutorials.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 10:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-should-i-modify-the-roof-code/m-p/723640#M9543</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-26T10:36:23Z</dc:date>
    </item>
  </channel>
</rss>

