Namespaces

Variants
Actions

jit.gl.light

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
m (Using the {{maxword|name=jit.gl.light}} object)
Line 2: Line 2:
  
 
==Using the {{maxword|name=jit.gl.light}} object==
 
==Using the {{maxword|name=jit.gl.light}} object==
{{maxword|name=jit.gl.light}} lets you add a light source to OpenGL. You can use up to 8 lights at a time in a scene.
+
{{maxword|name=jit.gl.light}} lets you add a light source to OpenGL.
 
+
Here's a nice example that shows both static and moving lights interacting with specular surfaces:
+
[[Media: multi.lights.material.maxpat]]
+
  
 
=={{maxword|name=jit.gl.light}} Tutorials==
 
=={{maxword|name=jit.gl.light}} Tutorials==
  
 
=={{maxword|name=jit.gl.light}} Tips and Workarounds==
 
=={{maxword|name=jit.gl.light}} Tips and Workarounds==
 +
{{maxword|name=jit.gl.light}} has a default light associated with it. Enabling any {{maxword|name=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 {{maxword|name=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:
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
1855.3oc0ZszjZiCD9L7qPkq8Hg0xuvdOw9CXOtmRkhRXK.kXrbjjmY1jJ+2
 +
W8vFrAaigwvPpZFXlVu59S8K0R+b5Dq0z2vbKveA9LXxjeNcxDMIEgIk++Dq
 +
8n2hSQbc2rho62iyDVyLsIvuIzzEErL.M6Ooa1.X3rDLijsEH1gA77cXFVRL
 +
mg4xgVQOkrc2g4YCa6Z07XO2thBMSvI+.qnBcNPtbRPBBMaECGKLLuaPvb+Y
 +
.OcO0yh5CvWpFERDuStv0GgM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
 +
h67hvc1dvf4mnAvOmvz2S9YHrip.HOH1QUdqmJ9w+4R8AZ+bgOP2mL9YwyE+
 +
39rwOCw9x8w49A5L.94RrydRhtRxkgHfx717OTHce+C+ywkYz3+f52d4Mx9i
 +
K2X+aE2393bcNDO4AOt7.F.27.caND2BmXqNb9wjD2IufTEqbxKG8jWM54uX
 +
ztdsnx04WS+e.alAXaA
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</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==

Revision as of 06:59, 26 October 2013

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

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)