Hi
im working on a graphical demo were you can walk around in a dark wood.
Now i have made the matrix and textured it also i have made the camera control so i can walk around i have placed the 3d trees now i want to make a skybox but i have never worked with it and i dont know how to make one.
is there someone ho can make a source to a skybox?
if you need my source then here it is:
rem this is the start of the code
rem hide the mouse
hide mouse
rem autocam off
autocam off
rem load media
load sound "media/sounds/wolf.wav", 1
load sound "media/sounds/rain.wav", 2
load sound "media/sounds/wind.wav", 3
load music "media/sounds/musictriumph.mp3", 4
rem load and play the game intro
load animation "media/gameintro/gameintro.avi", 1
rem play the animation
play animation 1
sleep 5000
sleep 1000
rem delete the animation again
delete animation 1
rem load and show the history on the screen
load image "media/history/history.jpg", 1
rem place history on screen
sprite 1,0,0,1
rem wait until a key is pressed
wait key
rem this command will delete the story sprite
delete sprite 1
rem clear the screen
cls
rem make the sync setup
sync on
sync rate 30
rem make matrix
make matrix 1,10000,10000,20,20
fog on
fog distance 550
fog color RGB(0,0,0)
color backdrop RGB(44,44,44)
rem texture matrix
load image "media/textures/moss04.bmp",1
prepare matrix texture 1,1,2,2
rem randomize matrix
randomize matrix 1,250
for x = 0 to 19
for z = 0 to 19
t= rnd(3)+1
set matrix tile 1,x,z,t
next z
next x
update matrix 1
rem place the 3d tree on the matrix randomly
for x= 1 to 50
load object "tree.3ds",x
texture object x, 1
color object x, RGB(122,91,33)
scale object x,30000,30000,30000
xrotate object x,269
position object x, rnd(10000),100,rnd(10000)
next x
rem this will loop the rain sound
loop sound 2
rem the main loop
do
rem object angle
cameraangley# = camera angle y()
rem make the camera control input
if upkey()=1 then move camera 20
if leftkey()=1 then yrotate camera wrapvalue(cameraangley#-5)
if rightkey()=1 then yrotate camera wrapvalue(cameraangley#+5)
if spacekey()=1
fill matrix 1,rnd(50),rnd(3)+1
randomize matrix 1,250
endif
x# = camera position x()
z# = camera position z()
position camera x#,250,z#
sync
loop
rem end of the code
The Nerd