Was just wondering if someone had some basic Bumpmapping code. IDK what Im doing wrong. I made a simple brick texture and made various normal maps or what not with Crazy bump but when I turn on bumpmapping with SET BUMP MAPPING ON it just washes out my entire plan and I get nothing.
Rem Project: Shadertest
Rem Created: Sunday, November 19, 2017
Rem ***** Main Source File *****
SYNC ON
MAKE OBJECT PLANE 1,500,500
LOAD IMAGE "WALL.BMP",1
LOAD IMAGE "WALL_NRM.PNG",2
SET BUMP MAPPING ON 1,2
TEXTURE OBJECT 1,1
SET SPOT LIGHT 0,10,250
COLOR LIGHT 0,RGB(0,0,255)
POINT LIGHT 0,0,0,0
XROTATE OBJECT 1,180
SET AMBIENT LIGHT 25
DO
mousex#=mousex#+(mousemovey()/5):
mousey#=mousey#+(mousemovex()/5):
control camera using arrowkeys 0,10,1
POSITION LIGHT 0, CAMERA POSITION X(),CAMERA POSITION Y(),CAMERA POSITION Z()
POINT LIGHT 0, CAMERA ANGLE X(),CAMERA ANGLE Y(),CAMERA ANGLE Z()
rotate camera 0,mousex#,mousey#,0
SYNC
LOOP
Is it possible my video card does not support it or am I doing something wrong? I just want to be able to do better graphics on my game and would love a down to earth tutorial if anyone is feeling up to it. Nothing I have tried has worked so far and the other Tutorials on the site have produced no results either
Should the code above work or am I not setting something up correctly?