[Fluxus] lighting the inside of a sphere

gabor papp gabor.lists at mndl.hu
Mon Nov 12 05:00:07 PST 2007


> two identical spheres except one with normals pointing inside and one
> outside
thanks artem.

> the camera light is 0, so you can do something like: (light-diffuse 0
>  (vector 0 0 0))
works very well. thank you. i also tried (destroy 0), but it didn't seem
to do anything.

> I've done this in the past by negative scaling a sphere inside a 
> normal one and grouping them under a locator - should work for most 
> things.
i could not make this work. am i doing something wrong?

(clear)

(define p (build-locator))

(parent p)
(define s (build-sphere 10 10))
(define si (build-sphere 10 10))

(with-primitive si
    (scale (vector -.9 -.9 -.9)))

i tried (recalc-normals), but it didn't help.

i also realised that (parent) does not work with (with-primitive) is it
on purpose? i tried something like this:

(with-primitive si
    (scale (vector -.9 -.9 -.9))
    (parent p))

thanks,
gabor




More information about the Fluxus mailing list