<?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: Xgen and LOD just doesn't work in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027004#M66796</link>
    <description>&lt;P&gt;I have been running into the exact same issue. Maya 2016 SP5. I am using Arnold for render but I get the same problem with MR. I've spent many hours playing with settings, different archives, expressions, etc&amp;nbsp;with no success. I reverted to trying a test, strangely similar to yours before coming here to make a post, haha.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Arnold it defaults to the Lo Index for the render for some reason. The only way I have found to fix this is modify the Med and Lo index expression in the advanced tab. Ex: Change "$aIndex*$aMul + 2 + 3" to "$aIndex*$aMul +&amp;nbsp;0 + 3". This works as a hack for selecting&amp;nbsp;what gets rendered. I have found no solution for the LOD to actually work as expected. Hopefully someone has a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Capture.JPG" alt="Capture.JPG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/216417iEDAB35E323189687/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2016 01:12:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-06T01:12:46Z</dc:date>
    <item>
      <title>Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6025693#M66795</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've been using XGen to build a forest scene with loads of trees. In an attempt to speed up the rendering I figured it would be good to set up some lower res geometry for the further away trees. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With a bit of messing about I managed to export a tree archive with med and lo versions. This all works nicely in a simple Xgen scene - I can see the level of detail change in the viewport when I change the Medium and Low Distance sliders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem comes with rendering - I only get the High trees at render time. I've tried bringing the distance right down so that I am seeing only low trees in the viewport, but its still rendering the high ones!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using VRay, but the same thing happens with MR. Doesn't really make sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried again with the simplest of scenes - a different primative shape for each LOD so that I can see for sure if it is working. It's working fine in the viewport, but I am only getting the high object in the render (see below).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/216245i43B2551BFBDB02B7/image-size/large?v=mpbl-1&amp;amp;px=-1" border="0" alt="xgen_lod.jpg" title="xgen_lod.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any help would be much appreciated, thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 11:00:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6025693#M66795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-05T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027004#M66796</link>
      <description>&lt;P&gt;I have been running into the exact same issue. Maya 2016 SP5. I am using Arnold for render but I get the same problem with MR. I've spent many hours playing with settings, different archives, expressions, etc&amp;nbsp;with no success. I reverted to trying a test, strangely similar to yours before coming here to make a post, haha.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Arnold it defaults to the Lo Index for the render for some reason. The only way I have found to fix this is modify the Med and Lo index expression in the advanced tab. Ex: Change "$aIndex*$aMul + 2 + 3" to "$aIndex*$aMul +&amp;nbsp;0 + 3". This works as a hack for selecting&amp;nbsp;what gets rendered. I have found no solution for the LOD to actually work as expected. Hopefully someone has a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Capture.JPG" alt="Capture.JPG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/216417iEDAB35E323189687/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 01:12:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027004#M66796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-06T01:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027597#M66797</link>
      <description>&lt;P&gt;I'm not sure if this is related. But&amp;nbsp;I was checking the arhive.log file. This error appears just before [0.00%] processing of each LOD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: file: C:/Program Files/Autodesk/Maya2016/plug-ins/xgen/scripts/xgen.mel line 612: AttributeError: file &amp;lt;maya console&amp;gt; line 1: 'NoneType' object has no attribute 'tracking'&lt;BR /&gt;Error: file: C:/Program Files/Autodesk/Maya2016/plug-ins/xgen/scripts/xgen.mel line 575: AttributeError: file &amp;lt;maya console&amp;gt; line 1: 'NoneType' object has no attribute 'tracking'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the files seem to generate properly in the archives.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 21:13:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027597#M66797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-06T21:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027946#M66798</link>
      <description>&lt;P&gt;I've got it working now. You were almost there with your expressions, you just needed to use the "$aLOD" variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So all three of the Hi/Mid/Lo index values should read:&lt;/P&gt;&lt;P&gt;"$aIndex*$aMul + $aLOD + 3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realised it's also useful to play with the proxy index. With this you can choose which objects show up in the viewport. So if you're running a bit slow, you can switch them all to medium with:&lt;/P&gt;&lt;P&gt;"$aIndex*$aMul + 1"&lt;/P&gt;&lt;P&gt;or low with:&lt;/P&gt;&lt;P&gt;"$aIndex*$aMul + 2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could even just skip the high and show the medium and low by clamping the LOD:&lt;/P&gt;&lt;P&gt;"$aIndex*$aMul + clamp($aLOD,1,2)"&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 12:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6027946#M66798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-07T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6028063#M66799</link>
      <description>&lt;P&gt;Brilliant. Thanks for that! It's working as expected for me now. I wish there was more documentation about some fo the expressions in XGen. Particularly regarding LOD. Many variables are not even mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using the trick to modify the index "$aIndex*$aMul + 1", "$aIndex*$aMul + 2", which was useful for rendering at lower detail previews. But now I can do both and have LOD! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 16:52:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6028063#M66799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-07T16:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6028902#M66800</link>
      <description>&lt;P&gt;Having got this working, I'm still having issues with it and VRay, which is still just rendering the High geometry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I should be asking this on the chaos group forum instead, but does anybody have any ideas about what might be going on?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:16:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6028902#M66800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6029341#M66801</link>
      <description>&lt;P&gt;I'm using Arnold and it does render all the&amp;nbsp;LOD's correctly now if I change the expression. As for Vray I'm not much help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you cull primitives outside the camera frustrum? The reason I ask is that it might be related. Arnold had an update recently that fixed XGen passing camera information to the render. Before the Arnold update it would cull in like a top down dial 0-360 degrees not based on the camera. Once they fixed that I assumed it would also fix LOD since it's also camera related. No dice until now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not much help but maybe it will give you some ideas to look into.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6029341#M66801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6029371#M66802</link>
      <description>&lt;P&gt;By the way. I liked your expression for clamping&amp;nbsp;"$aIndex*$aMul + clamp($aLOD,1,2)". I'm using that for the Proxy Index, so the viewport only shows med and lo while the render uses all levels.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:20:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6029371#M66802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6030688#M66803</link>
      <description>&lt;P&gt;If you like that, I found it even more useful to attach the proxy index to a simple slider. Try pasting this in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$level = 1;#0,2&lt;/P&gt;&lt;P&gt;$aIndex*$aMul + clamp($aLOD,(2-$level),2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sill no idea how to get this going in VRay though&amp;nbsp;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://forums.autodesk.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt; ...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 10:20:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6030688#M66803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T10:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6031090#M66804</link>
      <description>Actually, it turns out that LOD has just not been implemented into VRay yet (v3.1), just in case anyone else is interested in this.</description>
      <pubDate>Tue, 09 Feb 2016 14:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6031090#M66804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6031710#M66805</link>
      <description>&lt;P&gt;Nice expression. Love the slider for proxy. Sorry about VRay, I suspected it may not be implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a different subject, since we are both working with populating forests. I have been trying to come up with an expression to limit the primitive generation based on the upward facing portions of the base geometry. So for example on a detailed rock, I want to limit population in areas where things would grow (mostly upward facing). My hope was to have a vector with a slider range that I could multiply against the PTex map in the density field.&amp;nbsp;I'm an amateur at scripting. I tried working with the nVectorMask expression in the samples with no luck:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$xAxis =0.000;#-1.000,1.000&lt;BR /&gt;$yAxis =0.000;#-1.000,1.000&lt;BR /&gt;$zAxis =0.000;#-1.000,1.000&lt;/P&gt;&lt;P&gt;expand( ((($N[0]*0.5)+0.5)*$xAxis) + ((((1-$N[1])*0.5)+0.5)*$yAxis) + ((((1-$N[2])*0.5)+0.5)*$zAxis) , 0,1) - expand(abs($N[1]),0,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to multiply the expression with a PTex map, but I can't get a working vector expression, or maybe more accurately a curvature type mask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, just thought I would throw it out there if anyone has any ideas. I have just been relying on painting PTex maps for this but I would love a more effecient method.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6031710#M66805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6032001#M66806</link>
      <description>&lt;P&gt;I figured that would be useful, so I quickly put together an expression to go into the mask attribute. I only tested it quickly on a sphere, but I think it should work for any object. It is based on the Y axis normal in world space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have 2 sliders:&lt;/P&gt;&lt;P&gt;Position moves the mask to include more or less of the sides.&lt;/P&gt;&lt;P&gt;Tightness changes the spread of the mask - think of it as the blurryness of the mask&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need any of this explaining.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$position = 0.5000; #0.000,1.000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$tighness = 0.5000; #0.000,10.000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$surfNorm = $N;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$n = ($surfNorm[1]);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$a = $n + ($position-0.5)*2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$a = $a*(1+$tighness)-($tighness/2);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$a = clamp($a,0,1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$a&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:47:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6032001#M66806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T21:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6034567#M66807</link>
      <description>&lt;P&gt;Thank you! That is just what I was looking for. So far it's working very well with some dense geometry. I appreciate you taking the time. It also helps me understand a bit more about expressions in XGen. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 01:04:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/6034567#M66807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T01:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen and LOD just doesn't work</title>
      <link>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/7757443#M66808</link>
      <description>&lt;P&gt;Is there any documentation on all these variables? $aMul $aIndex $aLod&lt;/P&gt;&lt;P&gt;I searched the documentation and there is no mention of it anywhere.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 02:47:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/xgen-and-lod-just-doesn-t-work/m-p/7757443#M66808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T02:47:53Z</dc:date>
    </item>
  </channel>
</rss>

