Namespaces

Variants
Actions

jit.gl.light

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(People who looked at/used this object also looked at....)
m ({{maxword|name=jit.gl.light}} Tips and Workarounds)
 
Line 65: Line 65:
 
</code></pre>
 
</code></pre>
 
</maxpat>
 
</maxpat>
 
 
  
 
==Third-Party Max externals similar to the {{maxword|name=jit.gl.light}} object==
 
==Third-Party Max externals similar to the {{maxword|name=jit.gl.light}} object==

Latest revision as of 07:13, 26 October 2013

Contents

[edit] jit.gl.light online refpage

[edit] Using the jit.gl.light object

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

[edit] 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.

[edit] 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. --

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

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

[edit] People who looked at/used this object also looked at....

[edit] Errors or Clarifications

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