<?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: Color RGB on a texture in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258748#M3406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand exactly what you want, but I can say that it is not possible to access the RGB values in a texture image or the average brightness of the image from within CGA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolai's answer is the only way I&amp;nbsp;can think of to access the RGB values in images.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2020 14:15:21 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2020-01-21T14:15:21Z</dc:date>
    <item>
      <title>Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258745#M3403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, is it possible you read a pictures combined RGB values. I’m trying to figure out a way to determine how light or dark a texture is, and I was wondering if I could do something similar like when you read the RGB values on for ex. A rooftop from the map layer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 15:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258745#M3403</guid>
      <dc:creator>KennethLindhardt1</dc:creator>
      <dc:date>2019-11-18T15:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258746#M3404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth, as I understand your question, I guess what you're after is the brightness value, which you can access through the brightness channel in the New&amp;nbsp;map layer… &amp;gt; Obstacle / Mapping / Terrain dialogue window just as you access the red / green / blue and other channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="473788" alt="" class="jive-emoji image-1 jive-image" height="124" src="/legacyfs/online/473788_Skærmbillede 2019-11-19 kl. 08.39.11.png" width="376" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 07:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258746#M3404</guid>
      <dc:creator>NicolaiSteinø</dc:creator>
      <dc:date>2019-11-19T07:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258747#M3405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolai, nice to hear from you again. No it’s not exactly what I need, but you are right, that I need the brightness channel I just need it on a completely standard .jpg texture like facade textures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 09:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258747#M3405</guid>
      <dc:creator>KennethLindhardt1</dc:creator>
      <dc:date>2019-11-19T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258748#M3406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand exactly what you want, but I can say that it is not possible to access the RGB values in a texture image or the average brightness of the image from within CGA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolai's answer is the only way I&amp;nbsp;can think of to access the RGB values in images.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258748#M3406</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-01-21T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258749#M3407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kenneth. Hope all is well. Here is what I do for my roofs - I have taken several shingle textures into Photoshop where I have desaturated them and made them black and white. Then inside of CityEngine, I write the texture and the RGB value. This allows me to get many different roof colors with only one "texture". Is that what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2020 17:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258749#M3407</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2020-01-29T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258750#M3408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devin. Yes everything is very well here, hope the dame for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, I don't think it's it &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/1f60a.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we calculate urban heat island effect, I would like to look at 2 parameters. Light and dark material.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The darker material the more heat it will produce.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not the biggest issue, I was just curious.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have fifty shades of red bricks and fifty shades of yellow bricks, it could just be nice if I could calculate if it would be categorized light or dark, from the brightness in the texture you use at material.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would skip one manual process.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2020 17:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258750#M3408</guid>
      <dc:creator>KennethLindhardt1</dc:creator>
      <dc:date>2020-01-29T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258751#M3409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheryl. Thank you for the answer. Yes in this thought, I would need to access the texture&amp;nbsp; brightness information. It would be more a nice to have, than a need to have. If it was possible, it would be a step less to calculate urban heat island effect, since you would calculate the square meters of light and dark materials.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2020 18:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258751#M3409</guid>
      <dc:creator>KennethLindhardt1</dc:creator>
      <dc:date>2020-01-29T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258752#M3410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you perhaps use python to determine image brightness and encode it into the filename of the images you are dealing with? Suggests he who is terrible at python &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; Not ideal but theoretically it would work for what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 04:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258752#M3410</guid>
      <dc:creator>AlanKlys</dc:creator>
      <dc:date>2020-01-30T04:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Color RGB on a texture</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258753#M3411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a good use case.&amp;nbsp; Thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a texture in one layer and initial shapes in another layer, for each shape you could access the texture's RGB values by connecting rule attributes to layer attributes.&amp;nbsp; This would probe the texture at the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;xz&lt;/SPAN&gt; location that corresponds to the center of the shape's scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you have a texture that is used within a cga rule (for example, if you put it on a facade or any part of a generated model), you won't be able to access its RGB values in the middle of rule derivation.&amp;nbsp; This is what I was saying is not possible, which is, I think, what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only care about textures that appear in the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;xz&lt;/SPAN&gt; plane (e.g. roof), then one far fetched idea would be to generate your models with the texture, then convert them to shapes (so that they are in another layer called A).&amp;nbsp; Then, you can create another layer B containing shapes, where each&amp;nbsp;roof is divided into multiple shapes (at your desired sampling resolution).&amp;nbsp; Then, the each roof shape in B can sample the texture by connecting through&amp;nbsp;layer attributes to layer A.&amp;nbsp; But, this won't work for vertical facades, and it's a tedious workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/color-rgb-on-a-texture/m-p/258753#M3411</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-01-30T10:20:38Z</dc:date>
    </item>
  </channel>
</rss>

