Yes i used .bmp in the tree.bmp file load.
Your code worked well here.
Here is my (error) code...
autocam off
sync on
hide mouse
make_a_matrix()
make_a_tree(100,0,0,-10,-10)
fog on
fog color 0
fog distance 150
`set mipmap mode 2
color backdrop 0
position camera 0,5,-25
point camera 0,0,0
load image "tree.bmp",100
load object "container.x",1
set object 1,1,1,0,1,1,1,1
set object texture 1,0,0
position object 1,0,0,0
repeat
cx#=wrapvalue(cx#+0.25)
cz#=wrapvalue(cz#+0.5)
cy#=wrapvalue(cz#-0.2)
position camera sin(cx#)*15,5+sin(cy#)*2,cos(cz#)*25
point camera 0,4,0
sync
until mouseclick()=1
delete matrix 2
delete object 1
end
Function make_a_matrix()
make matrix 2,500,500,25,25
load bitmap "stoney05.bmp",2
get image 2,0,0,256,256
delete bitmap 2
position matrix 2,-250,0,-250
prepare matrix texture 2,2,1,1
set matrix 2,1,1,1,1,1,1,1
set matrix texture 2,1,1
EndFunction
Function make_a_tree(id,x,y,px,pz)
make object plain id,8,18
` load image "tree.bmp",100
texture object id,100
set object id,1,0,0
position object id,px,0,pz
EndFunction
This code does not work.
If I put load image from the top of the code into Function make_a_tree(id,x,y,px,pz) etc
it will load and work well (i removed "rem" it then from the beginning).
I don't know what is wrong.
Toedeledoki