Namespaces

Variants
Actions

jit.map

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(People who looked at/used this object also looked at....)
 
Line 88: Line 88:
  
 
==People who looked at/used this object also looked at....==
 
==People who looked at/used this object also looked at....==
{{maxword|name=jit.charmap}}
+
*{{maxword|name=jit.charmap}}
{{maxword|name=jit.clip}}
+
*{{maxword|name=jit.clip}}
{{maxword|name=jit.dimop}}
+
*{{maxword|name=jit.dimop}}
{{maxword|name=jit.expr}}
+
*{{maxword|name=jit.expr}}
{{maxword|name=jit.op}}
+
*{{maxword|name=jit.op}}
{{maxword|name=jit.planeop}}
+
*{{maxword|name=jit.planeop}}
{{maxword|name=jit.scalebias}}
+
*{{maxword|name=jit.scalebias}}
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==

Latest revision as of 17:12, 13 August 2013

Contents

[edit] jit.map online refpage

[edit] Using the jit.map object

jit.map is like a scale object for jitter matrices. It maps input values to output values based on the range specified by the @map attribute. Like scale, it uses two values for input low and high values and two for output low and high. jit.map works with all types and planecounts, but uses floating point arguments for the map regardless of type.

[edit] jit.map Tutorials

These example patches included with Max use jit.map for a variety of different applications:

  • The jit.buffer~ help patch (./Cycling '74/jitter-help/jit.buffer~.maxhelp);
  • ./examples/jitter-examples/render/jit.gl.gridshape-scanoffset.maxpat;
  • ./examples/jitter-examples/gen/mesh.shatter.maxpat

jit.map is used in Jitter recipes 17, 19, 46, 47, and 49.

[edit] jit.map Tips and Workarounds

Using jit.map on pixel data is one way to manipulate the color of an image and can be an interesting alternative to using jit.brcosa. Disabling the @clip attribute allows for very novel effects.

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

jit.map is also useful when working with OpenGL, where coordinates are represented with negative and positive values. This patch remaps the output of jit.noise, which outputs values from 0. - 1., before combining it with the outputmatrix of a jit.gl.gridshape to introduce noise into the surface without changing the shapes screen position:

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

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

Maxobjects.com listing for the jit.map object

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

[edit] Errors or Clarifications

When @clip is set to 0, values are wrapped.

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