Making Bump (normal) Maps for use with jit.gl.material

Andrew Benson's icon

The patch below takes a greyscale image and (using jit.gl.pix) converts it to a normalmap for really cool looking 3D lighting tricks. Bump mapping is typically used to make a low-poly 3D object look more complex by tricking the lighting calculation. You can use jit.gl.slab.gauss6x to smooth out the bumps if you like.

Max Patch
Copy patch and select New From Clipboard in Max.

Enjoy!

Mathieu Chamagne's icon

Hi Andrew

this looks like a cool patch... but when I open the grabber, I only get a black videoplane on my macBookPro i7, GT 330M, os X.7.2, Max 6.0.3 51824

Am I missing something ?

Mathieu

Rajan Craveri - micron's icon

I get a black videoplane too :(

llumen's icon

same here, there is an apparent error in jit.gl.pix saying that the concat class does not work in gen domain jit.gen

Andrew Benson's icon

I edited the original patch, so it hopefully should work now. Let me know how that works for you.

Rajan Craveri - micron's icon

I see a black videoplane again, how can I help you?
There are no error message in the Max window.

Andrew Benson's icon

Hi @micron, what hardware are you using?
Do other jit.gl.material or jit.gl.pix examples work on this computer?
What version of Max?

Mathieu Chamagne's icon

still same problem here : black video plane)
jit.gl.material and jit.gl.pix works fine on this computer.

(macBookPro i7, Nvidia GT 330M, os X.7.2, Max 6.0.3 51824)

Mathieu

Rajan Craveri - micron's icon

MacBook Pro
2.4 Ghz Intel Core i5
NVIDIA GeForce GT 330M 256 MB
4 GB RAM
OS X Lion 10.7.2
Max 6.0.3 51824

Examples works great.

Micron

Andrew Benson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

OK, I think it's the jit.gl.videoplane that's causing trouble. Switching it out for jit.gl.gridshape should help:

Let me know how that works.

Rajan Craveri - micron's icon

Works fine now and it's a very nice patch :)

Andrew Benson's icon

If you happen to have a Kinect camera lying around, the depth map works pretty nicely with this patch too.

Mathieu Chamagne's icon

it works great now ; very nice patch, thanks :-)

Wesley Smith's icon

@llumen
What version of Max are you using? [concat] is new as of 6.0.3