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.
Bumpmap BSP?
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.
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
Studying :: BSc Computer Games Technology :: UK