comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » set_shading question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
set_shading question [message #25650] Thu, 05 July 2001 10:53
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Hey there,

Can anyone enlighten me as to the LIGHT keyword to set_shading? The online docs state:

LIGHT
A three-element vector that specifies the direction of the light source. The default light
source vector is [0,0,1], with the light rays parallel to the Z axis.

How does one change the direction of illumination? I want to change the shading so I can
specify a source point (say [1,0,1] in a unit cube) and a "destination" point (say,
[0,1,1]) to define the light source direction, i.e. where the light is going *to*. Or is
this stuff like wind direction, i.e. you specify where the light is coming *from*?

thanks for any info

paulv

p.s. I'm using this for shading a surface in SHADE_SURF.

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
Alexander Pope.
[Message index]
 
Read Message
Previous Topic: Re: Inverting colourtable
Next Topic: Re: Warping surfaces to match control points

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:23:21 PDT 2025

Total time taken to generate the page: 0.48031 seconds