<?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: Generating a Slope Mask for terrain texturing. in Arnold for 3ds Max Forum</title>
    <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048089#M3440</link>
    <description>&lt;P&gt;It's the 17 lines of code in the code box in reply #1.&lt;BR /&gt;&lt;BR /&gt;Select them and ctrl+c&lt;BR /&gt;Go into max and open the checker.osl node, and open the code window, select everything in there and press ctrl+v. Now the 17 lines should be the only thing in the code window.&lt;BR /&gt;Now, press compile in lower left corner of window.&lt;BR /&gt;Close window, shader is compiled and working.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 20:33:03 GMT</pubDate>
    <dc:creator>madsd</dc:creator>
    <dc:date>2019-09-09T20:33:03Z</dc:date>
    <item>
      <title>Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048079#M3430</link>
      <description>&lt;P&gt;I'm trying to create snow peak mountain and want the snow to only sit on the flatter section of the terrain.  Obviously, on steep sections, there would be no snow.  How do I do this in Max Arnold?  I checked out utility and curvature nodes,  but they don't seem to provide anything to create what I want.  Thanks. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:16:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048079#M3430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T13:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048080#M3431</link>
      <description>&lt;P&gt;I found the answer.  You can use the &lt;/P&gt;&lt;P&gt;1) State Vector - Set to N for Normals.  &lt;/P&gt;&lt;P&gt;2) Use the Shuffle node and set it to B to isolate the up and down direction.  &lt;/P&gt;&lt;P&gt;3) Use RGB Ramp to color the range or set the black and white paint.  (Lower color point starts at .5 since normal map starting value is at .5 value.)  &lt;/P&gt;&lt;P&gt;Hope this helps others. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:17:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048080#M3431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048081#M3432</link>
      <description>&lt;P&gt;Wrote this into an OSL shader.&lt;/P&gt;&lt;P&gt;2 features exposed:&lt;BR /&gt;- Power&lt;BR /&gt;- Slope&lt;/P&gt;&lt;PRE&gt;shader SnowMask
(
	float Power  = 4.0
	[[
		float min =0.03,
		float max = 100.
	]],
	float Slope = 0.5
	[[
		float min =  0.0,
		float max = 0.9999999
	]],		
	output color Out = 1.0
)
{
	Out = pow((N[2] - Slope) / .5, 1.0 / Power);
}
&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4556-3.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1041698i9CFF8C8C1BA8BCED/image-size/large?v=v2&amp;amp;px=999" role="button" title="4556-3.jpg" alt="4556-3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4557-4.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1041699i09272473F13F15BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="4557-4.jpg" alt="4557-4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4558-5.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1041700i9DB5F7758437260A/image-size/large?v=v2&amp;amp;px=999" role="button" title="4558-5.jpg" alt="4558-5.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:15:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048081#M3432</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-09T18:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048082#M3433</link>
      <description>&lt;P&gt;Awesome, that is pretty awesome.  Do you have an elevation feature? Higher the elevation, the more snow coverage.  &lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:33:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048082#M3433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T18:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048083#M3434</link>
      <description>&lt;P&gt;No, but that could be build into it.&lt;BR /&gt;&lt;BR /&gt;The Power value is snow density and we can map that out over a distance to thin out snow in lower parts while having a massive top.&lt;/P&gt;&lt;P&gt;You can do this with core nodes.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:40:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048083#M3434</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-09T18:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048084#M3435</link>
      <description>&lt;P&gt;I added something to this effect in addition to adding 4 different sets of textures to build the terrain.  It's working, but my node network is getting complicated.  Would rather have a single node deal with it.  Also would be nice if we can get the Randomizebitmap node to have a feather feature  to tile texture without edge seams.  &lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048084#M3435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T18:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048085#M3436</link>
      <description>&lt;P&gt;Here, with very low Power, it has only snowed a little. Map this over v channel and pipe to Power in a normalized range which fits the current frame.&lt;BR /&gt;&lt;BR /&gt;This returns a situation where you can map the density out over hight.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4559-6.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1041702iCCB4BB38FF8A02DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="4559-6.jpg" alt="4559-6.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048085#M3436</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-09T18:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048086#M3437</link>
      <description>&lt;P&gt;And finally,&lt;BR /&gt;Added density control over v, this is not a linear mask over some generic distribution, the altitude controls the amount it has snowed, it does not just fade out a constant procerudal over distance.&lt;BR /&gt;&lt;BR /&gt;This way we can return both density inside a given range and play around with the slow in that particular range.&lt;BR /&gt;&lt;BR /&gt;I just set it to thick mountain tops and then thin out relativly fast, so you can see effect is working.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4560-g.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1041703iAAC2CF42894C4035/image-size/large?v=v2&amp;amp;px=999" role="button" title="4560-g.jpg" alt="4560-g.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4561-gg.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1041704i94AE3C9E2E4D8A86/image-size/large?v=v2&amp;amp;px=999" role="button" title="4561-gg.jpg" alt="4561-gg.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 19:28:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048086#M3437</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-09T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048087#M3438</link>
      <description>&lt;P&gt;Check this reply.&lt;BR /&gt;It does exactly what you say, fade actual density/power over the hight of the terrain.&lt;BR /&gt;&lt;A href="https://answers.arnoldrenderer.com/answers/19900/view.html" target="test_blank"&gt;https://answers.arnoldrenderer.com/answers/19900/view.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You would want to add a UVW map modifier to the mesh, planar mapping.&lt;BR /&gt;Catch this mapping with an OSL UVW map, same channel number.&lt;BR /&gt;Into a range node and work in the scales so the gradient from the map gets more contrasty, thats all you want to focus on, then pipe to Power on SnowMask shader and Hight controls density as well.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 19:38:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048087#M3438</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-09T19:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048088#M3439</link>
      <description>&lt;P&gt;Awesome dude.  Are you uploading the script somewhere where we mere mortals can play with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 20:13:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048088#M3439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T20:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048089#M3440</link>
      <description>&lt;P&gt;It's the 17 lines of code in the code box in reply #1.&lt;BR /&gt;&lt;BR /&gt;Select them and ctrl+c&lt;BR /&gt;Go into max and open the checker.osl node, and open the code window, select everything in there and press ctrl+v. Now the 17 lines should be the only thing in the code window.&lt;BR /&gt;Now, press compile in lower left corner of window.&lt;BR /&gt;Close window, shader is compiled and working.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 20:33:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048089#M3440</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-09T20:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048090#M3441</link>
      <description>&lt;P&gt;Also you can try this shader : 
&lt;/P&gt;&lt;P&gt;&lt;A href="http://zenopelgrims.com/dusty-arnold-shader/" target="test_blank"&gt;http://zenopelgrims.com/dusty-arnold-shader/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 05:40:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048090#M3441</guid>
      <dc:creator>RGhost77</dc:creator>
      <dc:date>2019-09-15T05:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a Slope Mask for terrain texturing.</title>
      <link>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048091#M3442</link>
      <description>&lt;P&gt;We can add additional feature sets to the OSL shader such as Ambient occlusion, I already did this the first day I looked at it, but decided to pull the AO aspect, to also respect for occluded top surfaces, overhangs, this is easy, but pulled since trace call in OSL is not currently supported on the GPU, but once it is, most of these c++ shaders will return redundant, also core arnold nodes.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 09:59:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-for-3ds-max-forum/generating-a-slope-mask-for-terrain-texturing/m-p/11048091#M3442</guid>
      <dc:creator>madsd</dc:creator>
      <dc:date>2019-09-15T09:59:12Z</dc:date>
    </item>
  </channel>
</rss>

