Bumpmap BSP?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Sn0rph
Posts: 4
Joined: Mon Apr 18, 2005 1:17 pm
Location: California, USA

Bumpmap BSP?

Post by Sn0rph »

I did a few searches on the forums for this, couldn't find anything that actually answered my question (probably a few posts that cover it, but I couldn't find them).

I would like to add bumpmapping to my .BSP file. Does anyone know:
1. Is it possible? (Through engine code and/or shaders?)
2. Is there a simple tutorial, or a sample of code anywhere around that I could look at to get a general idea?

Any help is greatly appreciated.
djceejay
Posts: 41
Joined: Fri Feb 25, 2005 11:42 am

Post by djceejay »

Load your BSP tree as normal. Setup the bump map shader and callbacks. If the hardware supports it, replace a material in the BSP to the shader material.

For instance in your BSP use a texture called bWall1.bmp (b for bump). Then replace this material with a bump shader. For a different texture bWall2.bmp etc.

Have a look how the materials get loaded when you load the BSP - I think it creates materials for you.

Have a look at the per pixel lighting tutorial aswell. It calls

Code: Select all

smgr->getMeshManipulator()->createMeshWithTangents
.
djceejay
Studying :: BSc Computer Games Technology :: UK
Post Reply