The reason I was asking is because I am not sure if it is because of the type of file or if the problem is in my code. I made a code with a matrix and the matrix is textured. I also made fps style camera controls. These worked fine but I tried to make a sky sphere for the sky over the matrix. I used one of the skyspheres from dark matter. When I made the code that included the skysphere it ran but i could not see the matrix i made. It was just the regular blue background. The sky was not being shown. here is the code
rem Make a simple scene for the camera to look at
make matrix 1,10000,10000,25,25
randomize matrix 1,50.0
set matrix height 1,12,12,300.0
update matrix 1
load image "grass.jpg",1
prepare matrix texture 1,1,2,2
load object "skysb.x",2
load image "skysb1.dds",2
load image "skysb2.dds",3
load image "skysb3.dds",4
load image "skysb4.dds",5
load image "skysb5.dds",6
load image "skysb6.dds",7
texture object 2,2
texture object 2,3
texture object 2,4
texture object 2,5
texture object 2,6
texture object 2,7
YROTATE OBJECT 2,OBJECT ANGLE Y(2)+0.5
position object 2,0,100,0
rem Set variables for character position
cx#=2500
cz#=2500
speed#=3.0
rem Activate manual sync
sync on : sync rate 60
hide mouse
rem Begin loop
do
set cursor 0,0
print "mcy#=",mcy#
print "mcx#=",mcx#
print "Camera Angle Y=",camera angle y()
rem Use MOUSEMOVE to alter camera angles
mcx#=wrapvalue(mcx#+mousemovey()*.5)
mcy#=wrapvalue(mcy#+mousemovex()*.5)
rotate camera mcx#,mcy#,0
rem Use WASD controls
if inkey$() = "w" then move camera 10
if inkey$() = "s" then move camera -10
if inkey$() = "a" then yrotate camera wrapvalue(camera angle y()-90) : move camera 10 : yrotate camera wrapvalue(camera angle y()+90)
if inkey$() = "d" then yrotate camera wrapvalue(camera angle y()+90) : move camera 10 : yrotate camera wrapvalue(camera angle y()-90)
rem Position camera to the ground height
cy#=get ground height(1,camera position x(),camera position z())+100.0
position camera camera position x(),cy#,camera position z()
rem Syncronise
sync
rem End loop
loop
How come both the skyshpere and the matrix don't show?
The matrix showed before i put these codes in it
load object "skysb.x",2
load image "skysb1.dds",2
load image "skysb2.dds",3
load image "skysb3.dds",4
load image "skysb4.dds",5
load image "skysb5.dds",6
load image "skysb6.dds",7
texture object 2,2
texture object 2,3
texture object 2,4
texture object 2,5
texture object 2,6
texture object 2,7
YROTATE OBJECT 2,OBJECT ANGLE Y(2)+0.5
position object 2,0,100,0
gm07