<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QMatrix4x4 multiply order]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a question about the <a href="http://doc.qt.io/qt-4.8/qmatrix4x4.html" target="_blank" rel="noopener noreferrer nofollow ugc">QMatrix4x4</a> class.</p>
<p dir="auto">This example code:</p>
<pre><code>QMatrix4x4 test;
test.perspective(...); // projection
test.lookat(...); // view
</code></pre>
<p dir="auto">What kind of matrix is test at the end? is it something like that:<br />
identity * projection * view<br />
or is it like that:<br />
view * projection * identity</p>
]]></description><link>https://forum.qt.io/topic/74216/qmatrix4x4-multiply-order</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 16:17:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/74216.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Dec 2016 12:54:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QMatrix4x4 multiply order on Mon, 12 Dec 2016 18:27:35 GMT]]></title><description><![CDATA[<pre><code>QMatrix4x4 tmp = ...;
tmp.translate(10,0,0);
</code></pre>
<p dir="auto">results in</p>
<pre><code>tmp = tmp * translationmatrix
</code></pre>
<p dir="auto">So the correct answer seams to be</p>
<ol>
<li>identity * projection * view</li>
</ol>
]]></description><link>https://forum.qt.io/post/364095</link><guid isPermaLink="true">https://forum.qt.io/post/364095</guid><dc:creator><![CDATA[QT-static-prgm]]></dc:creator><pubDate>Mon, 12 Dec 2016 18:27:35 GMT</pubDate></item><item><title><![CDATA[Reply to QMatrix4x4 multiply order on Mon, 12 Dec 2016 16:52:36 GMT]]></title><description><![CDATA[<p dir="auto">It's quite easy just to test it...<br />
run</p>
<pre><code>QMatrix4x4 test;
test.perspective(...); // projection
</code></pre>
<p dir="auto">check what is in test.</p>
<pre><code>QMatrix4x4 test;
test.lookat(...); // view
</code></pre>
<p dir="auto">check what is in test.<br />
pre and post multiply these two by hand (you can use <a href="http://www.wolframalpha.com/" target="_blank" rel="noopener noreferrer nofollow ugc">wolframalpha</a>) and compare it to the result you get in</p>
<pre><code>QMatrix4x4 test;
test.perspective(...); // projection
test.lookat(...); // view
</code></pre>
]]></description><link>https://forum.qt.io/post/364082</link><guid isPermaLink="true">https://forum.qt.io/post/364082</guid><dc:creator><![CDATA[VRonin]]></dc:creator><pubDate>Mon, 12 Dec 2016 16:52:36 GMT</pubDate></item><item><title><![CDATA[Reply to QMatrix4x4 multiply order on Mon, 12 Dec 2016 14:03:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qt-static-prgm">@<bdi>QT-static-prgm</bdi></a> said in <a href="/post/364033">QMatrix4x4 multiply order</a>:</p>
<p dir="auto">Since matrices don't commute in the general case and operate on the right-hand term I'd say the latter.</p>
]]></description><link>https://forum.qt.io/post/364041</link><guid isPermaLink="true">https://forum.qt.io/post/364041</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Mon, 12 Dec 2016 14:03:52 GMT</pubDate></item></channel></rss>