Multiple Light Source on sketch

Sep 23, 2009 at 9:36am

Multiple Light Source on sketch

Based on an replay pelado gave at the forum, I’m trying to create and control multiple light sources.

I’ve manage to create and control the ambient color of two light sources, but the position of the second source doesn’t have any effect.

If someone can help?

..one more thing:
which is the correct syntax when enabling more than one light source

glenable light0, glenable normalize, glenable lighting, glenable light1, glenable normalize, glenable lighting

or

glenable light0 light1, lenable normalize, glenable lighting

I’ve looked the “red book” but its not clear to me.

– Pasted Max Patch, click to expand. –

thanks in advance

P.

#45571
Sep 24, 2009 at 9:30pm

see if this simple patch with two spotlights helps clarify things.

– Pasted Max Patch, click to expand. –
#164351
Sep 25, 2009 at 9:10am

Thanks a bunch!!
That what was exactly what I needed.

P.

#164352

You must be logged in to reply to this topic.