Loosing text in fullscreen

Blitz3D Forums/Blitz3D Programming/Loosing text in fullscreen

This is my example code:

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


If I use it in windowed mode, it's working perfectly. When I use fullscreen (Graphics3D 800,600,16,1), the text disappear. Why???

Seems to work here fine (tested with a 512x512 texture)

Have you tried using flag 1 in the LoadTexture function?
texbg=LoadTexture("c:\Cement1.jpg",1)


I tried, but the problem is same.

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 



I tried setbuffer BackBuffer() too, but anything not happened. The problem is same.

Maybe my graphic card or directx version?
What do you think?

hmm.. its working on my computer. and your graphics card should not be at fault..

Which version of the Blitz Compile you using?

Blitz3D 1.66 Demo, we bought only the 2d for 2 years ago. We want to write a new program in 3D, but we don't know can we? And don't want to buy, redundatly.
Do you think, the probleam started there, we are not using a full version? Can it be?

theres been Meny updates since 1.66.
the bug may have gone a way since then. Tho this text is just a texture.

I have tried doing the text on an
texbg=LoadTexture("c:\Cement1.jpg")

i replaced it with

texbg = createtexture(256,256)

Try the CreateTexture option, see if you can see a result.

I send a letter to you to:www.neomancer.co.uk

Please read this, and answer as soon as possible.

Thanks.

n-ICE

If you use Yahoo messager im online as

neomancer64_home