AManOnDuty:
Here is some example code for you. It creates a texture and a cube. You can use the arrow keys to move around inside it.
Rem Project: Dark Basic Pro Project
Rem Created: Monday, December 27, 2010
Rem ***** Main Source File *****
sync on : sync rate 60
randomize timer()
// make random image for texture
for d = 1 to 100 : // place 100 random dots
//pick random color
ink rgb(rnd(255),rnd(255),rnd(255)),0
// place dot on screen
dot rnd(63),rnd(63)
next d
// grab the image
get image 1,0,0,64,64
// clear the screen
cls
// make a cube large enough that we can move around inside of it
make object cube 1,-5000
// texture the cube with the texture we made
texture object 1,1
// set the camera so that we don't see any gaps
set camera range .5,5000
// put camera inside the middle of the box
position camera 0.0,0.0,0.0
repeat
// use the arrow keys to move around inside the cube
control camera using arrowkeys 0,2.0,0.5
sync
UNTIL mouseclick() > 0 : // wait until the user clicks a mouse button
end
Hope this is helpful.