texture

GLSL Mixer (Composition by gtoledo3)

Author: gtoledo3
License: Public Domain
Date: 2011.09.30
Compatibility: 10.4, 10.5, 10.6, 10.7
Categories:
Required plugins:
(none)

This is a shader example that shows how to interpolate two textures using GLSL. It's handy as a destination that one can write to and mix directly at the renderer. It's also handy because one can get in there and edit in color control for each texture, change the way the texture maps, etc., if they desire.

It's based on part of the code here: http://www.codeproject.com/KB/openGL/GLSLShader.aspx ... but, it's also totally basic functionality, and I'm pretty sure this is described on the OpenGL org docs (as well as a few different types of mix/interpolate type functions that this could be adapted to do).

flownoise (Composition by gtoledo3)

Author: gtoledo3
License: MIT
Date: 2011.09.26
Compatibility: 10.4, 10.5, 10.6, 10.7
Categories:
Required plugins:
(none)

GLSL implementation of 2D "flow noise" as presented by Ken Perlin and Fabrice Neyret at Siggraph 2001. (2D simplex noise with analytic derivatives and in-plane rotation of generating gradients, in a fractal sum where higher frequencies are displaced (advected) by lower frequencies in the direction of their gradient. For details, please refer to the 2001 paper "Flow Noise" by Perlin and Neyret.)

Author: Stefan Gustavson (stefan.gustavson@liu.se) Distributed under the terms of the MIT license. See LICENSE file for details. Changes by George Toledo, 2011 Color control, exposure of various parameters.

Get Texture Coordinates (from mesh file)

Caelshadowhunter's picture

Hi, does anybody know of a way to get texture coordinates from a mesh file, so to apply them to a mesh creator?

3d object texture delay

dreamrec's picture

I want to build a pattern out of a simple 3d model, and to time delay the texture i'm sending to objects. How do i achieve that ? with iterations & Queue ?

thanks

CINormalMap_gt (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2011.01.18
Compatibility: 10.4, 10.5, 10.6
Categories:
Required plugins:
(none)

This is a core image filter that takes a greyscale heightfield (bump map) image, and outputs a normal map, in the style of nVidia Normal Map Filter plugin for photoshop, or NMG.

This allows one to create greyscale imagery in Quartz Composer, run image through this filter, and generate normals that can be rendered in the GLSL shader. This example uses Christopher Wright's Normal Map 1.qtz as a rendering destination, to show how it works.

Normal mapping is used to fake the appearance of a higher poly mesh than is actually being used when using GL Lighting.

http://en.wikipedia.org/wiki/Normal_mapping