jPCT-AE - a 3d engine for Android > Support

What is the best method to modify images with code.

(1/3) > >>

icarusfactor:
 I was wanting to take a Texture, load it into a alternate FrameBuffer, manipulate the texture,save it to Bitmap or convert it back to an Inputstream to create another texture.

Can it be done this way? or do I have another option.

USE CASE:
I have a simple bitmap font engine and want to render the text to an alternate FrameBuffer that has an overlay texture also blited to it, then save it to a Bitmap or to an InputStream to turn it back into a Texture so I don't have to re-render all the blited text over and over again.

Thomas.:
this should help  :)

icarusfactor:
 Thanks, will try that , looks like it treats a
 texture as a buffer , if it works , that will be
 what I need.

EgonOlsen:
Please note that this method, albeit ported 1-to-1 from desktop jPCT, doesn't work on my sucky phone. I've no idea what it does on other devices.

icarusfactor:
You are correct Egon , it also does "not" work on my tablet.

I have written the code so no error occurs and should be rendering it
 to the main FrameBuffer for display as a texture, but just remains its
 original all alpha image. Was thinking it was an update problem then
 saw your post saying you could "not" do it either.

Wondering if any way you can access a texture via its int[] or byte[]
 array. Manipulate the the int[] array data, then convert the int[] data
back into texture data.

Will keep trying some other methods. 






 

Navigation

[0] Message Index

[#] Next page

Go to full version