I know that using set reflection shading will only work on one object.
however with the code below when I switch this command on the box object jumps in front of the sphere object that it was behind.
Also this is using the -1 bitmap system.
Rem ***** Main Source File *****
sync on
sync rate 60
autocam off
position camera 0,1,-3
point camera 0,0,0
create bitmap 1,800,600
make camera 1
set camera to image 1,1,800,600,2 :rem 2 in alpha make it faster
make object sphere 1,1,40,40
scale object 1,100,0,100
rotate object 1,-90,0,0
xx=800
tt=timer()
dd=50
set object transparency 1,2
make object cube 2,1
position object 2,0,0,3
set reflection shading on 2 :rem out this line to see sphere in front of box
do
text 0,0,str$(xx)
make_color_map(xx,50,RGB(0,0,255),RGB(0,255,0),RGB(255,0,0))
texture object 1,1
dec xx,1
if xx<0 then xx=800
yrotate object 2,wrapvalue(object angle y (2)+1)
xrotate object 1,wrapvalue(object angle x (1)+.1)
sync
loop
function make_color_map(x,y,color_a,color_b,color_c)
set current bitmap -1
cls 0
box 0,0,x,y,color_b,color_c,color_b,color_c
box x,y,800,600,color_c,color_b,color_c,color_b
circle x,y,rnd(10)
set current bitmap 0
endfunction
Dark Physics makes any hot drink go cold.