no offence but, i seen better i made up one real quick to show i hvae no webhost right now so i just post the code here so you can copy it
btw i can't seam to find the projection code. is that even inculded?
Code: Select all
If InitSprite()=0
MessageRequester("Fatal Error!","Could not initalize directX",0)
End
EndIf
#screen_width.w=1024
#screen_height.w=768
If OpenScreen(#screen_width,#screen_height,16,"")=0
MessageRequester("Fatal Error!","Could not initalize the screen",0)
End
EndIf
If InitKeyboard()=0
MessageRequester("Fatal Error!","Could not initalize the keyboard",0)
End
EndIf
SetFrameRate(60) ;i put this in to keep the frame rate constant
xmax.w=10000
ymax.w=10000
zmax.w=2000
sspeed.w=-10
zmin.w=10
num.w=2000 ;get slow around 2500-3000 and i have 2.66 cpu
centerx.w=#screen_width/2
centery.w=#screen_height/2
zoom.w=60
shade.w=0
Dim sx(num)
Dim sy(num)
Dim sz(num)
For i=0 To num
sx(i)=Random(xmax)-xmax/2
sy(i)=Random(ymax)-ymax/2
sz(i)=Random(zmax)
Next i
Repeat
For i=0 To num
sz(i)=sz(i)+sspeed
If sz(i)<=zmin
sz(i)=zmax
sx(i)=Random(xmax)-xmax/2
sy(i)=Random(ymax)-ymax/2
EndIf
screenx.w=(sx(i)*zoom)/sz(i)+centerx
screeny.w=(-sy(i)*zoom)/sz(i)+centery
shade=Int(255/zmax* -sz(i))
If screenx < #screen_width
If screeny < #screen_height
If screenx > 0
If screeny > 0
StartDrawing(ScreenOutput())
Plot(screenx,screeny,RGB(shade,shade,shade))
StopDrawing()
EndIf
EndIf
EndIf
EndIf
Next i
ExamineKeyboard()
FlipBuffers()
ClearScreen(0,0,0)
Until KeyboardReleased(#PB_Key_Escape)
CloseScreen()
End
even has a nice fading affect