Need 2D Bump Map Code PLZ

Hey everyone,

I’m new to LWJGL and game programming, but not to java.

Does anyone have any bumpmap code that works with LWJGL 0.97+ (preferably on a 2D surface)? I’d like it to use a color map, gloss map ,and a bump map to generate the effects-I don’t need those hardcoded to be auto-generated. I don’t know much about what type of shading (phong etc) to use, so whatever works good and isn’t too slow would be great.

If the graphic files loaded were pngs-that would be great!( not necessary though).

I’d definetly appreciate any and all help…

thanks and GL with your own coding.

You’re better off asking at the forums on www.opengl.org than here - that’s where the GL experts tend to hang out :wink: Any C code they give you is very straightforward to turn into Java & LWJGL.

Cas :slight_smile:

Well, I don’t really program all that much anymore, I’m mainly an artist and I actually just wanted to test out making bump maps in 2D to see how they look. I was curious how bump mapping would look on some 2D sprites i’m working on to see if it is possible to simulate dynamic lighting (maybe more like shading) on them.

I’m not asking someone to write me a program or something, just help me out if they can with a tutorial or something simple like that-like one on the web or whatever they might know of.

I don’t really know much about C. So, even though it might be straightforward for you- it’s not for me.

There’s a bumpmapping tut on NeHe I think. It’s not exactly super-easy to understand and even more difficult if you want to do clever stuff like gloss mapping though.

Cas :slight_smile: