texturebuffer not working with DDS

Archives Forums/Blitz3D Bug Reports/texturebuffer not working with DDS

D4NM4N(Posted 2006) [#1]
i dunno if this is a bug or if im being dumb,

but.. (something like...)
tex=loadtexture "tex.dds"

img=createimage (texturewidth(tex),textureheight(tex))

copyrect 0,0,texturewidth(tex),textureheight(tex),0,0,texturebuffer(img),imagebuffer(tex)

the image seems ok with a normal tex but seems to copy part of the backbuffer when using dds



big10p(Posted 2006) [#2]
Well, in that code you're using texturebuffer() on an image and imagebuffer() on a texture - I'm guessing that's just a typo, though?

Anyway, Mark said in the release notes that "TextureBuffer() returns 0 for compressed textures.", so I'm guessing that any direct access to dds textures isn't permitted.


D4NM4N(Posted 2006) [#3]
yes to typo (it was outa my head :P

Ahhh that would xplain a lot. Any ideas how to make some small thumbail images of some loaded textures then (without any visible processing)


big10p(Posted 2006) [#4]
Render them to the backbuffer (using a sprite/quad) and then grab them from there?


D4NM4N(Posted 2006) [#5]
suppost thats 1 way

cheers