If you want to texture 3d objects, do not use sprites. You just load an image, create an object, and then use the "texture object" command to texture it. Like this:
sync on : sync rate 60
for n = 1 to 50
for m = 1 to 50
dot n, m, rgb( rnd(255), rnd(255), rnd(255) )
next m
next n
get image 1, 1, 1, 50, 50
cls
make object cube 1, 20
texture object 1, 1
position object 1, 0, 0, 0
position camera 50, 0, 0
point camera 0, 0, 0
repeat
rotate object 1, object angle x(1) + 1, object angle y(1) + 1, object angle z(1) + 1
sync
until returnkey() = 1
end
. Just replace the
for n = 1 to 50
for m = 1 to 50
dot n, m, rgb( rnd(255), rnd(255), rnd(255) )
next m
next n
get image 1, 1, 1, 50, 50
cls
with
load image "An Image.bmp", 1
. Sprites are used for 2d, not 3d
.