<?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 #define / How to Identify 3DSMax version in Shader. in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7466639#M11835</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Our&amp;nbsp;shader for 3DSMax 2015 appear BackFace when we use it in 3DSMax 2018 (we want to upgrate to this version)&lt;/P&gt;&lt;P&gt;In order to support the 2 versions, we need a #define or something in the Shader to identify Max version.&lt;/P&gt;&lt;P&gt;Are you aware of&amp;nbsp;a #define value we can test ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;FRED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2017 11:10:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-17T11:10:04Z</dc:date>
    <item>
      <title>#define / How to Identify 3DSMax version in Shader.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7466639#M11835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Our&amp;nbsp;shader for 3DSMax 2015 appear BackFace when we use it in 3DSMax 2018 (we want to upgrate to this version)&lt;/P&gt;&lt;P&gt;In order to support the 2 versions, we need a #define or something in the Shader to identify Max version.&lt;/P&gt;&lt;P&gt;Are you aware of&amp;nbsp;a #define value we can test ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;FRED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:10:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7466639#M11835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: #define / How to Identify 3DSMax version in Shader.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7469839#M11836</link>
      <description>&lt;P&gt;Nobody knows ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 08:05:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7469839#M11836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-18T08:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: #define / How to Identify 3DSMax version in Shader.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7470281#M11837</link>
      <description>&lt;P&gt;I don't know anything about Shaders, but I always use the &lt;EM&gt;&lt;STRONG&gt;#define MAX_VERSION_MAJOR&lt;/STRONG&gt;&lt;/EM&gt; to compile for the right max version.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 11:05:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7470281#M11837</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2017-10-18T11:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: #define / How to Identify 3DSMax version in Shader.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7471477#M11838</link>
      <description>&lt;P&gt;Simple example with directives (used for NOTIFY_REF_CHANGED_ARGS):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifndef NOTIFY_REF_CHANGED_ARGS&lt;BR /&gt;#if MAX_RELEASE &amp;lt; 16900&lt;BR /&gt;#define NOTIFY_REF_CHANGED_ARGS Interval changeInt, RefTargetHandle hTarget, PartID&amp;amp; partID, RefMessage message&lt;BR /&gt;#else&lt;BR /&gt;#define NOTIFY_REF_CHANGED_ARGS const Interval &amp;amp;changeInt, RefTargetHandle hTarget, PartID&amp;amp; partID, RefMessage message, BOOL propagate&lt;BR /&gt;#endif // MAX_RELEASE&lt;BR /&gt;#endif // NOTIFY_REF_CHANGED_ARGS&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 16:53:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7471477#M11838</guid>
      <dc:creator>Siger_</dc:creator>
      <dc:date>2017-10-18T16:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: #define / How to Identify 3DSMax version in Shader.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7473709#M11839</link>
      <description>&lt;P&gt;Hi Siger &amp;amp; Istan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately those directives (&lt;EM&gt;&lt;STRONG&gt;MAX_VERSION_MAJOR&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;MAX_RELEASE&lt;/STRONG&gt;&lt;/EM&gt;)&amp;nbsp;&lt;/SPAN&gt;did not work in Shader Code.&lt;/P&gt;&lt;P&gt;I'm wondering if one directive exist to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3DS max recompile the shader as soon as I change the code but is there any dynamic directive that contain the Max Version that launch that compilation ?&lt;/P&gt;&lt;P&gt;Still wondering...&lt;/P&gt;&lt;P&gt;FRED&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 10:45:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7473709#M11839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T10:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: #define / How to Identify 3DSMax version in Shader.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7507563#M11840</link>
      <description>&lt;P&gt;&amp;nbsp;is this what you seek?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define VERSION_3DSMAX ((MAX_RELEASE&amp;lt;&amp;lt;16)+(MAX_API_NUM&amp;lt;&amp;lt;8)+MAX_SDK_REV)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;take a look at plugapi.h in max sdk headers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; all is there&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 11:23:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/define-how-to-identify-3dsmax-version-in-shader/m-p/7507563#M11840</guid>
      <dc:creator>sehindel_19</dc:creator>
      <dc:date>2017-11-01T11:23:34Z</dc:date>
    </item>
  </channel>
</rss>

