texturefilter, and copyrect

Blitz3D Forums/Blitz3D Programming/texturefilter, and copyrect

RifRaf(Posted 2004) [#1]
hi all. im having an issue using texturefilters on my texture, and then using copyrect to copy text data onto the texture..

go to this topic and scroll to the bottom image to see what i mean..

http://www.blitzbasic.co.nz/Community/posts.php?topic=36430

the text bubble is fine but it has black borders around it.. if i use texturefilters 1+4 ect on it. then the area where I copyrect from the text image to the texture is transparent.. looks like a square donut.. mind you.. the black edges are gone, but so is the area of text that should have been copied.

and pointers on this one?


Dreamora(Posted 2004) [#2]
Are the original textures you copy from JPG or BMP/PNG?
JPG wouldn't be true black anymore and would be ignored by masking


RifRaf(Posted 2004) [#3]
YEAH IVE TRIED BMP AS WELL.. before i use copyrect to copy a rectangle onto the texture the bubble looks fine


Floyd(Posted 2004) [#4]
CopyRect is really a 2D graphics command.

You can use it on a texture buffer, but it doesn't handle alpha correctly.

So you will have to copy using the Read/Write/CopyPixel commands.