deformer

GLSL - Vertex Distortion Examples - Textured, Colored, Lighting

gtoledo3's picture

I came up with these shaders tonight while looking at the classic "vertex noise" glsl example, and thought I would share.

There are three variants; one is a textured vertex noise shader, one is a textured vertex noise shader with color control, and the third is a textured vertex noise shader with color control and lighting.

These shaders should work well with objects that are 3D dimensional as well (the wave shader I posted a couple of days ago calculated z in a way that flattens an object out).

Wave GLSL with Image Texture

gtoledo3's picture

I rewrote the shader here ( http://gpwiki.org/index.php/OpenGL:Codes:Simple_GLSL_example ) to have an image input for texture, and it's sort of fun, so I'm posting it here.

Twirler (Composition by gtoledo3)

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

This is a composition that takes an image and warps it using GLSL, a Sphere renderer, and Kineme3D HeightField. It also incorporates Kineme GL Tools Polygon Mode.

Bulge City (Composition by gtoledo3)

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

This is a twisted twist on the BuildingLoop composition I last uploaded.

This uses Kineme3D (the most recent beta) and Texture Tools... it should work on Leopard or Snow (save for if one was to enable the new shadow effect in the Lighting, which doesn't work with iterated objects... bug filed with Apple on that already).

It takes the city scene, and uses the Kineme3D to generate a Height Field that can then be warped.