UPDATE version 1.5 is now avaible! :
I was trying to make a faster version of the program were the snow flakes followed the player position. But i had some troubles making it that way so i decided to make it another way. I simply took some snow flakes out of the program. Now the version should be faster but with less snow
Hi
I was thinking if i maybe could make a 3D snow weather demo were you walking around in a snow weather. So i tried to see if was able to make it. And i was!

Well maybe it`s not the best but i like it anyway
Here is the code:
Version 1.0 :
Rem Project: Snow weather
Rem Created: 04-03-2005 19:55:40
Rem ***** Main Source File *****
`Normal settings
sync on
sync rate 30
hide mouse
`Make a matrix
make matrix 1,200,200,50,50
position matrix 1,0,-2,0
`The player object
make object box 1,10,10,10
scale object 1,10,10,10
color object 1, RGB(0,255,0)
position object 1,0,0,0
`Make the snow objects
for x = 2 to 7000
make object box x,2,2,2
scale object x,2,2,2
color object x,RGB(128,255,255)
position object x,rnd(100), rnd(200), rnd(100)
next x
do
`make the snow move down
for x = 2 to 7000
move object down x,0.10
next x
for x = 2 to 7000
if object position y( x ) <-5
position object x,rnd(100),20,rnd(100)
endif
next x
`the control input for the player object
if upkey() = 1
move object 1,2
endif
if downkey() = 1
move object 1,-2
endif
if leftkey() = 1
turn object left 1,2
endif
if rightkey() = 1
turn object right 1,2
endif
`Set the camera to follow the player
set camera to follow object position x(1),object position y(1),object position z(1),0,10,5,10,0
point camera object position x(1),object position y(1),object position z(1)
sync
loop
UPDATE : version 1.5 :
(Version 1.5 have faster fps but less snow)
Rem Project: Snow weather
Rem Created: 04-03-2005 19:55:40
Rem ***** Main Source File *****
`Normal settings
sync on
sync rate 30
hide mouse
`Make a matrix
make matrix 1,200,200,50,50
position matrix 1,0,-2,0
`The player object
make object box 1,10,10,10
scale object 1,10,10,10
color object 1, RGB(0,255,0)
position object 1,0,0,0
`Make the snow objects
for x = 2 to 1000
make object box x,2,2,2
scale object x,2,2,2
color object x,RGB(128,255,255)
position object x,rnd(100), rnd(200), rnd(100)
next x
do
`make the snow move down
for x = 2 to 1000
move object down x,0.10
next x
for x = 2 to 1000
if object position y( x ) <-5
position object x,rnd(100),20,rnd(100)
endif
next x
`the control input for the player object
if upkey() = 1
move object 1,2
endif
if downkey() = 1
move object 1,-2
endif
if leftkey() = 1
turn object left 1,2
endif
if rightkey() = 1
turn object right 1,2
endif
`follow cam code
set camera to follow object position x(1),object position y(1),object position z(1),0,10,5,10,0
point camera object position x(1),object position y(1),object position z(1)
sync
loop
Enjoy
Regards
The Nerd