<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi! <br>
    I have a little issue with a scene with shadows.<br>
    I need to have within a scene that has shadows an object that
    doesn't cast and doesn't receive shadows.<br>
    <br>
    Here is what I do:<br>
    <br>
    <span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">         
      const</span><span style=" color:#c0c0c0;"> </span><span style="
      color:#808000;">int</span><span style=" color:#c0c0c0;"> </span><span
      style=" color:#000000;">ReceivesShadowTraversalMask</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#000000;">=</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0x1</span><span
      style=" color:#000000;">;</span>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">const</span><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">CastsShadowTraversalMask</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0x2</span><span style=" color:#000000;">;</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">mask</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">geode</span><span style=" color:#000000;">-></span><span style=" color:#000000;">getNodeMask</span><span style=" color:#000000;">()</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">&</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">~</span><span style=" color:#000000;">CastsShadowTraversalMask</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">&</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">~</span><span style=" color:#000000;">ReceivesShadowTraversalMask</span><span style=" color:#000000;">;</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#000000;">geode</span><span style=" color:#000000;">-></span><span style=" color:#000000;">setNodeMask</span><span style=" color:#000000;">(</span><span style=" color:#000000;">mask</span><span style=" color:#000000;">);</span></pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
The geode doesn't cast shadows as expected. But unfortunately it receives shadow.
I have to mention that the object is in the transparent bin.

How can I prevent the object from receiving shadows?

- Werner -
</pre>
  </body>
</html>