nice code, but a littele slow. if you write on bitmaps use
the command "lock pixels / unlock pixels" before.
i found an old firecode of me, look
Rem Project: firestorm
Rem Created: 17.02.2004 23:52:35
Rem ***** Main Source File *****
Sync rate 60 : Sync on : Autocam off : Color backdrop 0
Dim colmap(1,255)
Dim texmap(127,127)
For c=0 To 85
colmap(0,c)=Rgb(c*3,0,0)
colmap(0,c+85)=Rgb(255,c*3,0)
colmap(0,c+170)=Rgb(255,255,c*3)
colmap(1,c)=Rgb(0,0,c*3)
colmap(1,c+85)=Rgb(0,c*3,255)
colmap(1,c+170)=Rgb(c*3,255,255)
Next c
Get image 1,0,0,127,127
Make memblock 1,12+128*128*4
Write memblock dword 1,0,128
Write memblock dword 1,4,128
Write memblock dword 1,8,32
Make object sphere 1,128,32,32
Set object light 1,0
Scale object 1,100,1,100
Position object 1,0,0,200
Texture object 1,1
Scale object texture 1,3,2
Repeat
Set cursor 0,0
Print Screen fps()
If a#=0
m=Rnd(1)
If Rnd(1)
Xrotate object 1,90
Else
Xrotate object 1,270
Endif
Endif
Set camera fov 50+Cos(a#)*40
Zrotate object 1,a#
a#=Wrapvalue(a#+0.5)
For x=0 To 127 Step Rnd(4)+1
texmap(x,127)=128+Rnd(127)
For y=0 To 127
c=texmap(Int(Abs(x)),y)-Rnd(3)
If c>0 Then texmap(Int(Abs(x+Rnd(2)-1)),Int(Abs(y-1)))=c
Next y
Next x
For x=0 To 127
For y=0 To 127
Write memblock dword 1,12+(x+y*128)*4,colmap(m,texmap(x,y))
Next x
Next y
Make image from memblock 1,1
Texture object 1,1
Sync
Until Mouseclick()
End