CreateTexture.

Blitz3D Forums/Blitz3D Bug Reports/CreateTexture.

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.

Hi,

I have made a programm with B3D 1.99 and Nvidia 6.14.0010.xxxx Drivers. After making a Demo of this i realize that every one with newer drivers (6.14.0011.xxxx) kann not see my textures created with the flag 260. Only 256 works. 258 works bu not correct.

So what is going on with the new drivers of nvidia and the blitzbasic flags of createtexture?

Edit, 258 was my faulkt, but 260 (256+4) no longer works

For me the problem is solved i can also use 258, so avoid flag "4" or "2".

Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
RotateEntity light,90,0,0
cube=CreateCube()
PositionEntity cube,0,0,5
tex=CreateTexture(256,256) ;<-- try FLAG 2 or 4 ...
;Driver Name: nv4_disp.dll
;Driver Version: 6.14.0011.6371 (English)


ixi = CreateImage (200,200)
SetBuffer ImageBuffer (ixi)
Color 255,0,255
Rect 0,0,150,150,1

SetBuffer TextureBuffer(tex)
ClsColor 255,255,255
Cls


font=LoadFont("arial",24)
SetFont font
Color 0,0,0
Text 0,0,"Diese Textur"
Text 0,40,"wurde erstellt mit"
Color 0,0,255
Text 0,80,"CREATETEXTURE()"
Color 0,0,0
Text 0,120,"und eingezeichnet mit"
Color 0,0,255
Text 0,160,"SETBUFFER TEXTUREBUFFER()"
EntityTexture cube,tex
SetBuffer BackBuffer()

CopyRect 0,0,200,200,0,0,ImageBuffer(ixi), TextureBuffer (tex)


While Not KeyHit(1)
pitch#=0
   yaw#=0
   roll#=0
   If KeyDown(208)=1 Then pitch#=-1
   If KeyDown(200)=1 Then pitch#=1
   If KeyDown(203)=1 Then yaw#=-1
   If KeyDown(205)=1 Then yaw#=1
   If KeyDown(45)=1 Then roll#=-1
   If KeyDown(44)=1 Then roll#=1
   TurnEntity cube,pitch#,yaw#,roll#
   RenderWorld
   Text 0,0,"Drehe den Würfel mit Cursortasten" Flip
Wend
End