Re: [info-performer] Background texture

Date view Thread view Subject view Author view

From: John Kelso (kelso++at++nist.gov)
Date: 05/12/2005 14:36:18


Hi,

We had to come up with a simple workaround for our immersive system, as
pfEarthSky doesn't work for off-axis viewing frsuta. Maybe something like
this will work for you.

We created a texture-mapped sphere, and scaled it to fit just inside the
far clipping distance. The sphere's position moves with the user, so you
never pass through the sky. But, we keep the orientation fixed, so as you
rotate, the background moves with the world. It doesn't include a floor,
as that should be part of the model itself.

The scale, rotation and position are all in a pfDCS, under which the
sphere is loaded. Every frame we calculate a new matrix for the pfDCS,
provided something changed.

-John

On Thu, 12 May 2005, Stace Peterson wrote:

> Rajesh,
>
> Unfortunately, there is no simple way to set a background texture for
> use with Performer. However, you can use a channel draw callback to
> render a screen size rectangle and apply a given pfTexture to it before
> rendering the scene with pfDraw().
>
> Hope this helps,
> Stace
>
> Rajesh R wrote:
> >
> > Dear All,
> >
> > How to put a background Texture using OPENGL PERFORMER ?
> >
> > Regards
> > Rajesh.R
> > Virtual Reality LAB,
> > Institute for Robotics and Intelligent Systems(IRIS)
> > c/o Centre for Artificial Intelligence and Robotics,
> > Ministry of Defence,
> > Bangalore -1
> > INDIA
> >
> > When I hear somebody say that "Life is hard,"
> > I am always tempted to ask, "Compared to what?"
> >
> > -----------------------------------------------------------------------
> > List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> > Open Development Project: http://oss.sgi.com/projects/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> > -----------------------------------------------------------------------
>
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu May 12 2005 - 14:36:22 PDT