Forums > Gen

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

January 12, 2012 | 1:01 am

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.

This article was used for reference:

http://http.developer.nvidia.com/CgTutorial/cg_tutorial_chapter08.html

Enjoy!

– Pasted Max Patch, click to expand. –

January 12, 2012 | 11:00 am

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


January 12, 2012 | 2:44 pm

I get a black videoplane too :(


January 12, 2012 | 3:02 pm

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


January 12, 2012 | 5:49 pm

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


January 12, 2012 | 6:06 pm

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


January 12, 2012 | 6:35 pm

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?


January 12, 2012 | 7:52 pm

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


January 12, 2012 | 11:18 pm

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


January 12, 2012 | 11:54 pm

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

– Pasted Max Patch, click to expand. –

Let me know how that works.


January 13, 2012 | 12:00 am

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


January 13, 2012 | 12:03 am

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


January 13, 2012 | 9:01 am

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


January 13, 2012 | 8:48 pm

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


Viewing 14 posts - 1 through 14 (of 14 total)