Namespaces

Variants
Actions

jit.gl.light

From Cycling '74 Wiki
Revision as of 07:13, 26 October 2013 by Corymetcalf (Talk | contribs)

Jump to: navigation, search

Contents

jit.gl.light online refpage

Using the jit.gl.light object

jit.gl.light lets you add a light source to OpenGL.

jit.gl.light Tutorials

Jitter Tutorial 35: Lighting and Fog is a good introduction to lighting in jitter. Although it uses the default light associated with jit.gl.render, not the jit.gl.light object, most of the information still applies to working with jit.gl.light.

jit.gl.light Tips and Workarounds

jit.gl.light has a default light associated with it. Enabling any jit.gl.light object in a patcher disables the default light. Take a look at the light.basic.maxpat example included with max for a clear look at this behavior. You can find it under ./examples/jitter-examples/render/lights.materials/light.basic.maxpat

Lights can be used in a jit.gl.node objects sub-context.

You can use up to 8 lights in a scene at a time. Here's a nice example that shows both static and moving lights interacting with specular surfaces: Media: multi.lights.material.maxpat

Attenuation is a great and important way to enhance your lighting effects. This simple patch demonstrates how attenuation parameters cause the light to fall off over distance:

-- Pasted Max Patch, click to expand. --


Third-Party Max externals similar to the jit.gl.light object

Maxobjects.com listing for the jit.gl.light object

People who looked at/used this object also looked at....

Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)