<?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: How can I close the shadows on certain objects ? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562944#M65089</link>
    <description>&lt;P&gt;&lt;SPAN class="autotaguser-autocomplete-box"&gt;@&lt;/SPAN&gt;&lt;A rel="nofollow" href="https://answers.flexsim.com/users/206/phil.b.html"&gt;phil.bobo&lt;/A&gt;,@&lt;A rel="nofollow" href="https://answers.flexsim.com/users/220/jordan.j.html"&gt;jordan.johnson&lt;/A&gt; Both of your methods can all work. Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 00:36:19 GMT</pubDate>
    <dc:creator>mark_s3</dc:creator>
    <dc:date>2018-10-23T00:36:19Z</dc:date>
    <item>
      <title>How can I close the shadows on certain objects ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562941#M65086</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;In "Global Preferences",I checked the "Use Shadows" box.But in my model,I want certain objects not to use shadows, and certain objects to use shadows.How can I close the shadows on certain objects ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 05:53:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562941#M65086</guid>
      <dc:creator>mark_s3</dc:creator>
      <dc:date>2018-10-16T05:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I close the shadows on certain objects ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562942#M65087</link>
      <description>&lt;P&gt;You can make an object luminous. Then it won't use lighting or shadows:&lt;/P&gt;&lt;PRE&gt;treenode object = model().find("Processor1");
assertattribute(object, "drawflags", DATATYPE_NUMBER);
rebindobjectattributes(object);
set(drawflags(object), get(drawflags(object)) | DRAW_FLAG_LUMINOUS);&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562942#M65087</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2018-10-16T15:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I close the shadows on certain objects ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562943#M65088</link>
      <description>&lt;P&gt;You can also use the fglinfo() command to determine if you are in the draw pass rendering into the shadow map. &lt;/P&gt;&lt;PRE&gt;if (fglinfo(FGL_INFO_SHADERTYPE, view) == SHADERTYPE_RENDER_SHADOWS)&lt;/PRE&gt;&lt;P&gt;If you hide the shapes so that they aren't drawn during the shadow map pass, then they will not cast shadows (but they will still be affected by the view's lighting).&lt;/P&gt;&lt;P&gt;Attached is an example model that has an object with an array label pointing at other objects to hide during the shadow draw pass.&lt;/P&gt;&lt;P&gt;&lt;A id="15014" href="https://answers.flexsim.com/storage/attachments/15014-shadowcontroller.fsm"&gt;shadowcontroller.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15015-shadowcontroller.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497928iC86E1DC5A623AC14/image-size/large?v=v2&amp;amp;px=999" role="button" title="15015-shadowcontroller.png" alt="15015-shadowcontroller.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that the switch_hideshape() code is on a separate object (ShadowController) than the objects that it is hiding. If you try to hide and show an object from its own draw trigger, then it will stay hidden because it will no longer fire its own On Draw trigger after being hidden.&lt;/P&gt;&lt;P&gt;Also, the ShadowController object needs to be below the objects it is controlling in the tree so that its On Draw trigger is fired before they are drawn. So set the rank of the object to be last in your model.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 17:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562943#M65088</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2018-10-16T17:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I close the shadows on certain objects ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562944#M65089</link>
      <description>&lt;P&gt;&lt;SPAN class="autotaguser-autocomplete-box"&gt;@&lt;/SPAN&gt;&lt;A rel="nofollow" href="https://answers.flexsim.com/users/206/phil.b.html"&gt;phil.bobo&lt;/A&gt;,@&lt;A rel="nofollow" href="https://answers.flexsim.com/users/220/jordan.j.html"&gt;jordan.johnson&lt;/A&gt; Both of your methods can all work. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 00:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-close-the-shadows-on-certain-objects/m-p/13562944#M65089</guid>
      <dc:creator>mark_s3</dc:creator>
      <dc:date>2018-10-23T00:36:19Z</dc:date>
    </item>
  </channel>
</rss>

