<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342</link>
    <title>MATLAB Central Newsreader - Virtual Reality Toolbox: rotation using matrix?</title>
    <description>Feed for thread: Virtual Reality Toolbox: rotation using matrix?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 01 May 2009 14:25:49 -0400</pubDate>
      <title>Virtual Reality Toolbox: rotation using matrix?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342#646638</link>
      <author>Alexander Erlich</author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I'm very new to Virtual Reality Toolbox, and one of the many questions&lt;br&gt;
I have is this. The demos, like the car in the mountains demo, show&lt;br&gt;
that you can do rotations this way:&lt;br&gt;
&lt;br&gt;
car.rotation = [0, 1, 0, -0.7];&lt;br&gt;
&lt;br&gt;
Yet I would prefer to use my own own matrix for rotation, which I have&lt;br&gt;
put together using Euler's angles. How can I apply it?&lt;br&gt;
&lt;br&gt;
Also, where can I search for attributes or properties of the nodes?&lt;br&gt;
vrnode didn't yield any of this information.&lt;br&gt;
&lt;br&gt;
Alexander</description>
    </item>
    <item>
      <pubDate>Fri, 01 May 2009 20:44:02 -0400</pubDate>
      <title>Re: Virtual Reality Toolbox: rotation using matrix?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342#646737</link>
      <author>Arkadiy Turevskiy</author>
      <description>For conversion from rotation matrix to axes/angle, use the function &quot;VRROTMAT2VEC&quot;.&lt;br&gt;
&lt;br&gt;
For node attributes: create a node, then use fields(node):&lt;br&gt;
&lt;br&gt;
car = vrnode(world, 'Automobile')&lt;br&gt;
%% Viewing Fields of Nodes&lt;br&gt;
% VRML fields of a given node can be queried using the FIELDS command.&lt;br&gt;
% You will see that there are fields named 'translation' and 'rotation'&lt;br&gt;
% in the node list. You can move the car around by changing the values of&lt;br&gt;
% these fields.&lt;br&gt;
fields(car)&lt;br&gt;
&lt;br&gt;
see vrcar.m for a detailed demo.&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Arkadiy Turevskiy&lt;br&gt;
The MathWorks&lt;br&gt;
&lt;br&gt;
Alexander Erlich &amp;lt;alexander.erlich@gmail.com&amp;gt; wrote in message &amp;lt;1d7fcf89-1d1a-448a-bd80-ccf27bff630f@x1g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm very new to Virtual Reality Toolbox, and one of the many questions&lt;br&gt;
&amp;gt; I have is this. The demos, like the car in the mountains demo, show&lt;br&gt;
&amp;gt; that you can do rotations this way:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; car.rotation = [0, 1, 0, -0.7];&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yet I would prefer to use my own own matrix for rotation, which I have&lt;br&gt;
&amp;gt; put together using Euler's angles. How can I apply it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also, where can I search for attributes or properties of the nodes?&lt;br&gt;
&amp;gt; vrnode didn't yield any of this information.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Alexander</description>
    </item>
    <item>
      <pubDate>Sat, 02 May 2009 15:08:21 -0400</pubDate>
      <title>Re: Virtual Reality Toolbox: rotation using matrix?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342#646842</link>
      <author>Alexander </author>
      <description>Thank you Arkadiy,&lt;br&gt;
&lt;br&gt;
but my Matlab help does not know the command &quot;vrrotmat2vec&quot;, although&lt;br&gt;
I could easily find it on the Mathworks online help. Maybe I should&lt;br&gt;
have said what kind of version I have. I am using&lt;br&gt;
&lt;br&gt;
Matlab (R2007a), student version&lt;br&gt;
&lt;br&gt;
Could it be that Virtual Reality Toolbox, my Simulink or something&lt;br&gt;
else does not come as a full version in the student edition?&lt;br&gt;
&lt;br&gt;
Alexander&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On May 1, 10:44&#160;pm, &quot;Arkadiy Turevskiy&quot;&lt;br&gt;
&amp;lt;arkadiy.turevs...@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; For conversion from rotation matrix to axes/angle, use the function &quot;VRRO=&lt;br&gt;
TMAT2VEC&quot;.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For node attributes: create a node, then use fields(node):&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; car = vrnode(world, 'Automobile')&lt;br&gt;
&amp;gt; %% Viewing Fields of Nodes&lt;br&gt;
&amp;gt; % VRML fields of a given node can be queried using the FIELDS command.&lt;br&gt;
&amp;gt; % You will see that there are fields named 'translation' and 'rotation'&lt;br&gt;
&amp;gt; % in the node list. You can move the car around by changing the values of&lt;br&gt;
&amp;gt; % these fields.&lt;br&gt;
&amp;gt; fields(car)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; see vrcar.m for a detailed demo.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hope this helps.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Arkadiy Turevskiy&lt;br&gt;
&amp;gt; The MathWorks&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; AlexanderErlich&amp;lt;alexander.erl...@gmail.com&amp;gt; wrote in message &amp;lt;1d7fcf89-1d=&lt;br&gt;
1a-448a-bd80-ccf27bff6...@x1g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I'm very new to Virtual Reality Toolbox, and one of the many questions&lt;br&gt;
&amp;gt; &amp;gt; I have is this. The demos, like the car in the mountains demo, show&lt;br&gt;
&amp;gt; &amp;gt; that you can do rotations this way:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; car.rotation = [0, 1, 0, -0.7];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Yet I would prefer to use my own own matrix for rotation, which I have&lt;br&gt;
&amp;gt; &amp;gt; put together using Euler's angles. How can I apply it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Also, where can I search for attributes or properties of the nodes?&lt;br&gt;
&amp;gt; &amp;gt; vrnode didn't yield any of this information.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;Alexander</description>
    </item>
    <item>
      <pubDate>Sun, 03 May 2009 08:54:05 -0400</pubDate>
      <title>Re: Virtual Reality Toolbox: rotation using matrix?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342#646946</link>
      <author>Alexander </author>
      <description>I really don't want to insist, but could it be that one of my&lt;br&gt;
toolboxes is not complete as I have a student version?&lt;br&gt;
&lt;br&gt;
How can this be dealt with mathematically? Can vrrotmat2vec be easily&lt;br&gt;
written by oneself?&lt;br&gt;
&lt;br&gt;
On May 2, 5:08&#160;pm, Alexander &amp;lt;alexander.erl...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Thank you Arkadiy,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but my Matlab help does not know the command &quot;vrrotmat2vec&quot;, although&lt;br&gt;
&amp;gt; I could easily find it on the Mathworks online help. Maybe I should&lt;br&gt;
&amp;gt; have said what kind of version I have. I am using&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Matlab (R2007a), student version&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Could it be that Virtual Reality Toolbox, my Simulink or something&lt;br&gt;
&amp;gt; else does not come as a full version in the student edition?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Alexander&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On May 1, 10:44&#160;pm, &quot;Arkadiy Turevskiy&quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;arkadiy.turevs...@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; For conversion from rotation matrix to axes/angle, use the function &quot;VR=&lt;br&gt;
ROTMAT2VEC&quot;.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; For node attributes: create a node, then use fields(node):&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; car = vrnode(world, 'Automobile')&lt;br&gt;
&amp;gt; &amp;gt; %% Viewing Fields of Nodes&lt;br&gt;
&amp;gt; &amp;gt; % VRML fields of a given node can be queried using the FIELDS command.&lt;br&gt;
&amp;gt; &amp;gt; % You will see that there are fields named 'translation' and 'rotation'&lt;br&gt;
&amp;gt; &amp;gt; % in the node list. You can move the car around by changing the values =&lt;br&gt;
of&lt;br&gt;
&amp;gt; &amp;gt; % these fields.&lt;br&gt;
&amp;gt; &amp;gt; fields(car)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; see vrcar.m for a detailed demo.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hope this helps.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Arkadiy Turevskiy&lt;br&gt;
&amp;gt; &amp;gt; The MathWorks&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; AlexanderErlich&amp;lt;alexander.erl...@gmail.com&amp;gt; wrote in message &amp;lt;1d7fcf89-=&lt;br&gt;
1d1a-448a-bd80-ccf27bff6...@x1g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I'm very new to Virtual Reality Toolbox, and one of the many question=&lt;br&gt;
s&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I have is this. The demos, like the car in the mountains demo, show&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; that you can do rotations this way:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; car.rotation = [0, 1, 0, -0.7];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Yet I would prefer to use my own own matrix for rotation, which I hav=&lt;br&gt;
e&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; put together using Euler's angles. How can I apply it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Also, where can I search for attributes or properties of the nodes?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; vrnode didn't yield any of this information.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;Alexander</description>
    </item>
    <item>
      <pubDate>Sun, 03 May 2009 09:14:01 -0400</pubDate>
      <title>Re: Virtual Reality Toolbox: rotation using matrix?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342#646948</link>
      <author>Bruno Luong</author>
      <description>Alexander &amp;lt;alexander.erlich@gmail.com&amp;gt; wrote in message &amp;lt;d498c6c6-6197-48f2-8608-f1f4b09ae451@e23g2000vbe.googlegroups.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How can this be dealt with mathematically? Can vrrotmat2vec be easily&lt;br&gt;
&amp;gt; written by oneself?&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Easily yes, but there are few subtle points you need to pay attention.&lt;br&gt;
&lt;br&gt;
See this old thread where many algorithm are compared:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_thread/160945&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_thread/160945&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Mon, 04 May 2009 03:01:01 -0400</pubDate>
      <title>Re: Virtual Reality Toolbox: rotation using matrix?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250342#647079</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Alexander&quot; &amp;lt;alexander.erlich@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:0fa708e1-22b9-474a-9ccb-1a0338bdf8ff@g20g2000vba.googlegroups.com...&lt;br&gt;
Thank you Arkadiy,&lt;br&gt;
&lt;br&gt;
but my Matlab help does not know the command &quot;vrrotmat2vec&quot;, although&lt;br&gt;
I could easily find it on the Mathworks online help. Maybe I should&lt;br&gt;
have said what kind of version I have. I am using&lt;br&gt;
&lt;br&gt;
Matlab (R2007a), student version&lt;br&gt;
&lt;br&gt;
Could it be that Virtual Reality Toolbox, my Simulink or something&lt;br&gt;
else does not come as a full version in the student edition?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The VRROTMAT2VEC function was introduced in the release R2007b release of &lt;br&gt;
this toolbox, as indicated by the Release Notes for that release:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/sl3d/rn/bq7qlwp-1.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/sl3d/rn/bq7qlwp-1.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
It will not be present in the release R2007a release of this toolbox.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

