Re: [info-performer] earthy sky

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 06/23/2005 09:47:25


Hi Dani,

Try something like:

   module = viewer->findModule("pfvmEarthandSky");
   pfEarthSky* esky = ((pfvmEarthSky*)module)->getESky();
   esky->setColor(PFES_SKY_TOP,1.0,1.0,1.0,1.0);

The pfvmEarthSky module only takes care of the initial
configuration of the pfEarthSky object.
After pfConfig, the application has to take over, as in
the above example.

Hope this helps.
Regards,
Paolo

On Wed, 22 Jun 2005 21:50:41 -0700 (PDT), Daniela Calderon
<danielacpucci10++at++yahoo.com> wrote:

> Hi all!
> I want to change dynamically the colors of the
> earthsky so i'm doing
> this:
>
> module = viewer->findModule("pfvmEarthandSky");
>
> ((pfvmEarthSky *)module)->colSkyTop.vec[0] = 1;
>
> ... etc for all the properties...
>
> but nothing happens ....
>
> thank in advance..
>
> dani

-- 
Paolo Farinelli <paolo++at++sgi.com>
Open GL Performer - Silicon Graphics Inc.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 23 2005 - 09:42:46 PDT