Hi all, I battling to get shadow volumes working using
SET SHADOW SHADING ON
here is my code,
sync on
autocam off
rem Turn off default light
hide light 0
make light 1
set point light 1,0,20,0
color light 1,rgb(0,0,255)
show light 1
rem Floor
make object cube 100,10
color object 100,rgb(255,255,255)
position object 100,0,-3,5
scale object 100,300,50,300
rem Shadow Caster
make object cube 101,5
position object 101,0,10,5
rem Light object
make object cube 102,1
position object 102,0,20,5
set normalization on
set shadow shading on 101
rem Position Variables
xpos#=0
zpos#=0
rem Camera
make camera 1000
position camera 1000,0,30,30
point camera 1000,0,0,0
do
if leftkey()=1 then xpos# = xpos# + .1
if rightkey()=1 then xpos# = xpos# - .1
if upkey()=1 then zpos# = zpos# - .1
if downkey()=1 then zpos# = zpos# + .1
position object 102,xpos#,20,zpos#
position light 1,xpos#,20,zpos#
sync
loop
I dont know why this aint working. I have a radeon 9800 so it does support it.
Thanks in advance
Erick