Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g20g2000vba.googlegroups.com!not-for-mail
From: Alexander <alexander.erlich@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Virtual Reality Toolbox: rotation using matrix?
Date: Sat, 2 May 2009 08:08:21 -0700 (PDT)
Organization: http://groups.google.com
Lines: 54
Message-ID: <0fa708e1-22b9-474a-9ccb-1a0338bdf8ff@g20g2000vba.googlegroups.com>
References: <1d7fcf89-1d1a-448a-bd80-ccf27bff630f@x1g2000prh.googlegroups.com> 
	<gtfmui$n21$1@fred.mathworks.com>
NNTP-Posting-Host: 84.137.221.245
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1241276901 12142 127.0.0.1 (2 May 2009 15:08:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 2 May 2009 15:08:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g20g2000vba.googlegroups.com; posting-host=84.137.221.245; 
	posting-account=H4StzgoAAAB6i5sBDFPlaOTd7qBlZoph
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) 
	Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:536892


Thank you Arkadiy,

but my Matlab help does not know the command "vrrotmat2vec", although
I could easily find it on the Mathworks online help. Maybe I should
have said what kind of version I have. I am using

Matlab (R2007a), student version

Could it be that Virtual Reality Toolbox, my Simulink or something
else does not come as a full version in the student edition?

Alexander


On May 1, 10:44 pm, "Arkadiy Turevskiy"
<arkadiy.turevs...@mathworks.com> wrote:
> For conversion from rotation matrix to axes/angle, use the function "VRRO=
TMAT2VEC".
>
> For node attributes: create a node, then use fields(node):
>
> car = vrnode(world, 'Automobile')
> %% Viewing Fields of Nodes
> % VRML fields of a given node can be queried using the FIELDS command.
> % You will see that there are fields named 'translation' and 'rotation'
> % in the node list. You can move the car around by changing the values of
> % these fields.
> fields(car)
>
> see vrcar.m for a detailed demo.
>
> Hope this helps.
>
> Arkadiy Turevskiy
> The MathWorks
>
> AlexanderErlich<alexander.erl...@gmail.com> wrote in message <1d7fcf89-1d=
1a-448a-bd80-ccf27bff6...@x1g2000prh.googlegroups.com>...
> > Hello,
>
> > I'm very new to Virtual Reality Toolbox, and one of the many questions
> > I have is this. The demos, like the car in the mountains demo, show
> > that you can do rotations this way:
>
> > car.rotation = [0, 1, 0, -0.7];
>
> > Yet I would prefer to use my own own matrix for rotation, which I have
> > put together using Euler's angles. How can I apply it?
>
> > Also, where can I search for attributes or properties of the nodes?
> > vrnode didn't yield any of this information.
>
> >Alexander