<?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[Set rotation by 3x3 matrix?]]></title><description><![CDATA[<p>i have a tripod of 3 vectors, all 90deg to eachother.<br />
x1,x2,x3 ---&gt; viewvector<br />
y1,y2,y3 ---&gt; crossproduct1 of viewv.<br />
z1,z2,z3 ---&gt; crossproduct2 of viewv.<br />
how can i set an objects rotation to this new rotation matrix?<br />
i have a halfbaked solution with rotateXYZ that computes angles, but i guess it should be possible to override the rotation matrix somehow, wich would be much nicer.<br />
thanks for help in advance.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 15:05:01 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/3798.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Apr 2010 11:12:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Set rotation by 3x3 matrix? on Tue, 27 Apr 2010 11:12:43 GMT]]></title><description><![CDATA[<p>i have a tripod of 3 vectors, all 90deg to eachother.<br />
x1,x2,x3 ---&gt; viewvector<br />
y1,y2,y3 ---&gt; crossproduct1 of viewv.<br />
z1,z2,z3 ---&gt; crossproduct2 of viewv.<br />
how can i set an objects rotation to this new rotation matrix?<br />
i have a halfbaked solution with rotateXYZ that computes angles, but i guess it should be possible to override the rotation matrix somehow, wich would be much nicer.<br />
thanks for help in advance.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix</guid><dc:creator><![CDATA[sonsofsol]]></dc:creator><pubDate>Tue, 27 Apr 2010 11:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to Set rotation by 3x3 matrix? on Thu, 06 May 2010 16:12:29 GMT]]></title><description><![CDATA[<p>so i found out that its possible to set a modelview matrix with glLoadMarix.<br />
and that it looks like this<br />
<a href="http://wiki.delphigl.com/index.php/Matrix#Aufbau_einer_OpenGL-Matrix" rel="nofollow">http://wiki.delphigl.com/index.php/Matrix#Aufbau_einer_OpenGL-Matrix</a></p>
<p>| 0 4 8 12 |<br />
| 1 5 9 13 |<br />
| 2 6 10 14 |<br />
| 3 7 11 15 |<br />
+- -+</p>
<p>where (i guess...)<br />
0 = front X<br />
1 = front Y<br />
2 = front Z<br />
3 = 0<br />
4 = right X<br />
5 = right Y<br />
6 = right Z<br />
7 = 0<br />
8 = up X<br />
9 = up Y<br />
10 = up Z<br />
11 = 0<br />
12 = pos X<br />
13 = pos Y<br />
14 = pos Z<br />
15 = 1</p>
<p>but i still dont have any idea how to patch it... <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/frowning.png" title=":(" alt=":(" /><br />
i hope someone can help me</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix/2</guid><dc:creator><![CDATA[sonsofsol]]></dc:creator><pubDate>Thu, 06 May 2010 16:12:29 GMT</pubDate></item><item><title><![CDATA[Reply to Set rotation by 3x3 matrix? on Thu, 06 May 2010 16:49:17 GMT]]></title><description><![CDATA[<p>GEMglLoadMatrix seems to be not existing...<br />
somebody from OGL forum sent me this code</p>
<p>var Matrix: array[0..3] of array[0..3] of single;<br />
begin<br />
glPushMatrix;<br />
Matrix:= [ [ Right.x, Right.y, Right.z, 0],<br />
[ Up.x, Up.y, Up.z, 0],<br />
[ Front.x, Front.y, Front.z, 0],<br />
[ 0, 0, 0, 1] ];<br />
InvertMatrix(Matrix);<br />
glMultMatrixf(@Matrix);</p>
<p><a href="//Billboards">//Billboards</a> zeichnen;</p>
<p>glPopMatrix;<br />
end;</p>
<p>GEMglPushMatrix exists, but i dont get a second inlet to feed it the matrix<br />
and i have no idea how to do it.<br />
Any ideas?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix/3</guid><dc:creator><![CDATA[sonsofsol]]></dc:creator><pubDate>Thu, 06 May 2010 16:49:17 GMT</pubDate></item><item><title><![CDATA[Reply to Set rotation by 3x3 matrix? on Wed, 12 May 2010 11:00:15 GMT]]></title><description><![CDATA[<p>its so simple, sometimes...</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/facing.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/facing.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3798/set-rotation-by-3x3-matrix/4</guid><dc:creator><![CDATA[sonsofsol]]></dc:creator><pubDate>Wed, 12 May 2010 11:00:15 GMT</pubDate></item></channel></rss>