how to set head

2 messages Options
Embed this post
Permalink
Qriz

how to set head

Reply Threaded More More options
Print post
Permalink
Hey!

I'm actually a bit confused about how to set the head matrix in the current framework, as Config::setHeadMatrix is marked as deprecated. The eqPly still uses this method to do so, but in the current API Documentation all I could find was the setHeadMatrix of the Observer class. Is there a sample for the current framework?

Actually I'm trying to use our head tracking with equalizer in a 4-sided cave. How is the projection handled? I saw a hmd attribute for the wall configuration in the config-file-type docs, but what does it do?

Or maybe simply asked: Where do I start? I'm a bit lost with my problem.

Greetings
Chris
Stefan Eilemann

Re: [eq-dev] how to set head

Reply Threaded More More options
Print post
Permalink

On 3. Jul 2009, at 18:04, Qriz (via Nabble) wrote:

> Or maybe simply asked: Where do I start? I'm a bit lost with my  
> problem.

For simple cases, you can use the current implementation of  
Config::setHeadMatrix:
   for each observer
       observer->setHeadMatrix

The background is the support for multiple observers. If your  
application wants to drive for example two HMD's, it has to feed them  
with two different head matrices, hence the move of observer-specific  
stuff (head matrix, eye separation) to the Observer class.

The HMD flag is to tell Equalizer to consider the wall as an HMD, and  
move it with the head matrix instead of keeping the wall constant and  
moving the eyes as done for CAVEs.


HTH,

Stefan.