Hey all,
I am currently in the process of learning more about Bump Mapping and there is one thing I need to know. How would I go about setting up a system where the Bump Map actually Updates Constantly without needing to Rotate the Object in a fixed location. What I am trying to accomplish is getting a continuous Specular Update, kinda like the effect you would see on weapons in Halo 3 or something where the Specular Highlights actually update as you move through areas with light, if this makes any sense
here is my code I just need some insight is all and maybe a little example.
Rem Project: Bump Mapping
Rem Created: 5/21/2008 3:28:02 PM
Rem ***** Main Source File *****
` Load Standards
Sync On
Sync Rate 30
Backdrop On
Hide Mouse
Autocam On
` Resolution
Set Display Mode 1024, 768, 32
` Load the Images
Load Image "lead.bmp", 1
Load Image "leadBump.tga", 2
` Make a Matrix
Make Matrix 1, 128, 128, 20, 20
Prepare Matrix Texture 1, 1, 1, 1
` Load a Gun
Make Object Cube 1, 10
Load Object "H-AK47-Static.x", 2
Load Image "ak47.bmp", 3
Load Image "ak47Bump.tga", 4
Scale Object 2, 250, 250, 250
Hide Object 1
` Texture the gun and Position it
Texture Object 2, 3
Lock Object On 2
Position Object 2, 1, -0.5, 1.2
Disable Object ZDepth 2
` Make the GUn shiney
Set Light Mapping On 2, 4
Set Bump Mapping On 2, 4
Set Object Specular Power 2, 10
` Customize the Ambient Light
Make Light 1
Hide Light 0
Show Light 1
Set Point Light 1, 30, 30, 30
Set Normalization On
` Main loop
Do
` Camera Control
Control Camera Using ArrowKeys 0, 1, 5
` Rotate the object to see the effect better
` YRotate Object 2, Object Angle Y ( 2 ) + 1
` Update the screen
Sync
` End the loop
Loop