How can I manipulate textures

BlitzMax Forums/MiniB3D Module/How can I manipulate textures

Sveinung(Posted 2007) [#1]
Is there a way to convert texures from ttexture to tpixmap?
Or maybe there is another way to manipulate it?

Can't get the BackBufferToTex to work either. The texture gets the color of the first pixel I draw.

Regards
Sveinung


Dreamora(Posted 2007) [#2]
how do you check your texture?
because if you do it on a model: are you sure the model has UV data? cause the error you describe is the common error that happens when an object without UV data (-> all UV 0,0 -> all colored with pixel top left of texture) is textured.


klepto2(Posted 2007) [#3]
Take a look at this post: http://www.blitzbasic.com/Community/posts.php?topic=67027

You have to use : DisableTextureFilter() before doing BackbuffertoTex() because if you don't you will only copy the texture to mip level 0 and this is only used if you go very and i mean very close to the model.


Sveinung(Posted 2007) [#4]
Thank you both. Got it to work :D

Sveinung


SteAbra(Posted 2007) [#5]
it would be nice if you post a working solution. i want to manipulate a texture.

thanks

stephan


Sveinung(Posted 2007) [#6]
OK
Here is an example...not a good one
BTW this is WIP


Sveinung


degac(Posted 2007) [#7]
For everyone is arrived here this is the solution!
...
BackBufferToTex(tx)
EntityTexture obj,tx
...