|
Author |
Topic: New arguments for lights() ? (Read 301 times) |
|
JohnG
|
New arguments for lights() ?
« on: Oct 5th, 2003, 2:19am » |
|
Would it be possible for lights() to be affected by translate/rotate etc, or to be able to give an x/y/z position for it? Currently lights just turns on the lighting system, and it seems that the lightsource is always at 0,0,0 before any translations. so, if I draw a sphere in the middle of the scrren, there is no way to make the light come from the lower right, except rotating the view 180'. similarly, if I draw cubes middle left/right/top/bottom, there's no way for light to appear to be coming frmo the middle of the screen and lighting all their inward pointing faces primarily.
|
|
|
|
fry
|
Re: New arguments for lights() ?
« Reply #1 on: Oct 20th, 2003, 1:42am » |
|
it's possible now.. check the pair of bboard posts under the 'lights' section of the technotes: http://proce55ing.net/reference/technotes/index.html lighting will get better in a future release, but this stuff will at least get you started. (moving this over to syntax)
|
|
|
|
|