Loosing text in fullscreen

Blitz3D Forums/Blitz3D Programming/Loosing text in fullscreen

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Graphics3D 800,600,16,2 
fntArial=LoadFont("Arial",48,True,False,False) 
SetFont fntArial 
f=48 
camera=CreateCamera() 
light=CreateLight() 
texbg=LoadTexture("c:\Cement1.jpg") 
SetBuffer TextureBuffer(texbg) 
Color 255,255,255 
Text 20, 0+18, "Menu 01" 
Text 20,f+18,"Menu 02" 
Text 20,f*2+18,"Menu 03" 
Text 20,f*3+18,"Menu 04" 
Text 20,f*4+18,"Menu 05" 
Text 20,f*5+18,"Menu 06" 
Text 20,f*6+18,"Menu 07" 
Text 20,f*7+18,"Menu 08" 
Text 20,f*8+18,"Menu 09" 
Text 20,f*9+18,"Menu 10" 
albbg=CreateCube() 
ScaleEntity albbg,10,7,3 
PositionEntity camera,0,0,0 
EntityTexture albbg,texbg 
PositionEntity albbg,-11,8.5,25 
RotateEntity albbg,10,10,5 
While Not KeyDown( 1 ) 
RenderWorld 
Flip 
Wend 


I found the problem.. It works on mine. BUT i know what you missed out..

You need to set the Buffer to Back buffer!! in this example. there isn't one after setbuffer to the texture


Graphics3D 800,600,16,2 
fntArial=LoadFont("Arial",48,True,False,False) 
SetFont fntArial 
f=48 
camera=CreateCamera() 
light=CreateLight() 
texbg=LoadTexture("c:\Cement1.jpg") 
SetBuffer TextureBuffer(texbg)  ; <-- Your first instance
Color 255,255,255 
Text 20, 0+18, "Menu 01" 
Text 20,f+18,"Menu 02" 
Text 20,f*2+18,"Menu 03" 
Text 20,f*3+18,"Menu 04" 
Text 20,f*4+18,"Menu 05" 
Text 20,f*5+18,"Menu 06" 
Text 20,f*6+18,"Menu 07" 
Text 20,f*7+18,"Menu 08" 
Text 20,f*8+18,"Menu 09" 
Text 20,f*9+18,"Menu 10" 

setbuffer BackBuffer() ; <-- You need it here... 

albbg=CreateCube() 
ScaleEntity albbg,10,7,3 
PositionEntity camera,0,0,0 
EntityTexture albbg,texbg 
PositionEntity albbg,-11,8.5,25 
RotateEntity albbg,10,10,5 
While Not KeyDown( 1 ) 
RenderWorld 
Flip 
Wend