[info-performer] affecting pfLightSource in node draw callback

Date view Thread view Subject view Author view

From: Terry Welsh (mogumbo++at++totalmail.com)
Date: 12/17/2003 10:08:39


Hi,
  I'm trying to increase the ambient light in my scene when I draw my cloud geometry to simulate having a lot of scattered light in my clouds. To do this I am trying to affect pfLightSources in the node draw callbacks of my cloud geometry.
  I have tried increasing the ambient value of my pfLightSource in the pre draw callback and decreasing it in the post draw callback. However, these commands have no effect. I have also tried creating 2 pfLightSources with different ambient values, turning one on and one off in each draw callback with pfLightSource::on() and pfLightSource::off(). But they both stay on all the time;
  Shouldn't this be possible, or is there some reason this won't work?

Terry Welsh
http://www.reallyslick.com

_____________________________________________________________
  Get Your Free Email at http://www.totalmail.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 17 2003 - 13:08:42 PST