Re: How to rotate the head

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 01/13/2000 12:39:41


You either need two DCS coordinates, one for position and one for
rotation, this will be a rendering overhead but keep things simple for
you. You then model the head object coordinates around the origin and
translate to the neck using the first DCS, below this translation in the
scene graph but above the head geometry you can apply the rotation DCS.

The alternative approach which is better but involves a little more
thought is to construct a single matrix which moves the head to the
origin, rotates it and moves it back to the neck in your code. This is
the classic approach to rotating an object about a point. You then
specify the matrix you've calculated as the transformation the DCS will
apply. You need to know what the rotation point is ofcourse and will
have to measure it in the tool or derive it from the head bounding
coordinates.

Cheers,Angus.

pylonet++at++yahoo.com wrote:
>
> Hi All,
> I would be very happy if you could help me solve this problem:
>
> I use a robot model from Multigen. I want to ratote the head around its
> neck, but the head rotate around some axis far away the neck, although
> I have set the local coordinate to neck.
>
> Please tell me how to set DCS or other corrdinate system to overcome the
> problem.
>
> Thank you!
>
> Pylonet
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Success is the ability to go from one failure to another with
 no loss of enthusiasm."    -    Winston Churchill.

Performer + OpenGL examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jan 13 2000 - 12:40:16 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.