<?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 to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9181845#M7367</link>
    <description>&lt;P&gt;Thanks, I have got what I want from UVGen. Appreciate for that.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 12:02:48 GMT</pubDate>
    <dc:creator>jeremyliu1989</dc:creator>
    <dc:date>2019-12-04T12:02:48Z</dc:date>
    <item>
      <title>How to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9177248#M7365</link>
      <description>&lt;P&gt;Hey, all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could get the&amp;nbsp;&lt;SPAN&gt;UVTransform Matrix from with the&amp;nbsp;&lt;A title="GetUVTransform(Matrix3 &amp;amp; uvtrans)" href="https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__cpp_ref_class_texmap_html" target="_blank" rel="noopener"&gt;GetUVTransform(Matrix3&amp;nbsp;&amp;amp;&amp;nbsp;&lt;EM&gt;uvtrans&lt;/EM&gt;) .&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question is, how can I calculate the U_Offset or V_Offset from above Matrix3?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QQ截图20191202224400.png" style="width: 345px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703443i2AD4D02F5A1A7D73/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ截图20191202224400.png" alt="QQ截图20191202224400.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any suggestion.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 14:45:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9177248#M7365</guid>
      <dc:creator>jeremyliu1989</dc:creator>
      <dc:date>2019-12-02T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9178908#M7366</link>
      <description>&lt;P&gt;That's just the transform, what you want is to get the StdUVGen and use GetUOffs/GetVOffs, something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;auto coords = map.GetTheUVGen();
if (coords &amp;amp;&amp;amp; coords-&amp;gt;IsStdUVGen()) {
	auto const stdUVCoords = static_cast&amp;lt;StdUVGen*&amp;gt;(coords);
	/* do something with stdUVCoords-&amp;gt;GetUOffs(time) */
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Dec 2019 07:43:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9178908#M7366</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2019-12-03T07:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9181845#M7367</link>
      <description>&lt;P&gt;Thanks, I have got what I want from UVGen. Appreciate for that.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 12:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/9181845#M7367</guid>
      <dc:creator>jeremyliu1989</dc:creator>
      <dc:date>2019-12-04T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/13049426#M7368</link>
      <description>&lt;PRE&gt;auto coords = map.GetTheUVGen();
if (coords &amp;amp;&amp;amp; coords-&amp;gt;IsStdUVGen()) {
	auto const stdUVCoords = static_cast&amp;lt;StdUVGen*&amp;gt;(coords);
	/* do something with stdUVCoords-&amp;gt;GetUOffs(time) */
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to bring up this old topic. But I have the same question now, but I need to do it with MaxScript. Is this possible? If not, how can I compile the above C++ code in maxscript? Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 09:47:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/13049426#M7368</guid>
      <dc:creator>Phil_Morgan</dc:creator>
      <dc:date>2024-09-27T09:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/13052599#M7369</link>
      <description>&lt;P&gt;MXS equivalent of the above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;map = bitmaptexture()
-------------------
map.coords.U_Offset
map.coords.V_Offset&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I think you need something else...&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 06:59:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/13052599#M7369</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-09-29T06:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get U_Offset/V_Offset from UVTransform matrix of texmap with C++ API?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/13052776#M7370</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1634609"&gt;@denisT.MaxDoctor&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;MXS equivalent of the above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;map = bitmaptexture()
-------------------
map.coords.U_Offset
map.coords.V_Offset&lt;/LI-CODE&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;&lt;P&gt;but I think you need something else...&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;I know about these Bitmaptexture properties. But that's not what I need.&lt;BR /&gt;&lt;U&gt;I don't have the original texturemap&lt;/U&gt;&lt;SPAN&gt;, but I do have the data from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;.coords.UVTransform&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;property from original texturemap as matrix. Now I need to create a texture map by applying the data from this matrix to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;More details in this thread: &lt;A href="https://forums.autodesk.com/t5/3ds-max-programming/how-to-get-bitmaptexture-coordinates-property-from-uvtransform/m-p/13052622/" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/3ds-max-programming/how-to-get-bitmaptexture-coordinates-property-from-uvtransform/m-p/13052622/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 12:22:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/how-to-get-u-offset-v-offset-from-uvtransform-matrix-of-texmap/m-p/13052776#M7370</guid>
      <dc:creator>Phil_Morgan</dc:creator>
      <dc:date>2024-09-29T12:22:15Z</dc:date>
    </item>
  </channel>
</rss>

