texturebuffer not working with DDS
Archives Forums/Blitz3D Bug Reports/texturebuffer not working with DDS
| ||
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 |
| ||
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. |
| ||
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) |
| ||
Render them to the backbuffer (using a sprite/quad) and then grab them from there? |
| ||
suppost thats 1 way cheers |