CUBEMAP THINGY

Blitz3D Forums/Blitz3D Programming/CUBEMAP THINGY

Naughty, I was just meaning that check if there are difference between loaded and created texture, just basic debugging :)

edit:
I tried loading 3 cubemaps... works as smooth as 2 or 1..
(I know, I'n not updating them in main loop..)


Graphics3D 640,480,32,2
SetBuffer BackBuffer()

camera=CreateCamera()

light=CreateLight()
RotateEntity light,90,0,0

; Create sphere
sphere1=CreateSphere()
sphere2=CreateSphere()
sphere3=CreateSphere()

tex1=LoadTexture("cube1.jpg", 1+128 + 256)
tex2=LoadTexture("cube2.jpg", 1+128 + 256)
tex3=LoadTexture("cube3.jpg", 1+128 + 256)

PositionEntity sphere1,-2,0,5
PositionEntity sphere2,0,0,5
PositionEntity sphere3,2,0,5

EntityTexture sphere1, tex1
EntityTexture sphere2, tex2
EntityTexture sphere3, tex3



While Not KeyDown( 1 )

a = a + 1
x# = Sin(a) * 2.0
PositionEntity camera, x,0,-5

RenderWorld
Flip
Wend

End