Im having loads of problems at the minute, especially bumpmapping here is the code:
`display
set display mode 1024,768,32
hide mouse
sync on
sync rate 0
`==========================================================
` M E D I A
`==========================================================
load image "earth.bmp",1
load image "earthbump.bmp",2
make object sphere 1,100,25,50
texture object 1,1
set bump mapping on 1,2
position object 1,0.0,0.0,0.0
make light 1
set spot light 1,10,90
position light 1,100.0,100.0,100.0
point light 1,0.0,0.0,0.0
position camera 100.0,100.0,0.0
point camera 0.0,0.0,0.0
`==========================================================
` M A I N
`==========================================================
do
gosub _debug
x#=wrapvalue(x#+mousemovey()/4)
y#=wrapvalue(y#+mousemovex()/4)
z#=wrapvalue(z#+mousemovez()/4)
rotate camera x#,y#,z#
if upkey()=1 then move camera 2.0
if downkey()=1 then move camera -2.0
sync
loop
`==========================================================
` F U N C T I O N S
`==========================================================
`==========================================================
` S U B R O U T I N E S
`==========================================================
_debug:
if scancode()=15
text 0,0,"Frames Per Second: "+str$(fps)
text 0,10,GET DIR$()
else
fps=screen fps()
endif
return
when i run this, firstly the camera does not point at the place specifed, and secondly the sphere is completely black with no texture or lighting.
anyideas? this is really annoying
Machine:
AMD XP2100+, Geforce4Ti 4400 GFX Card, 512Mb DDR Ram on a Abit KX7 Mobo.
What the flame does not consume, consumes the flame.