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

blitting text and images

<< < (7/9) > >>

paulscode:

--- Quote from: paulscode ---the overhead of adding new textures was significantly more than modifying existing textures (to the point that the first option was not really an option if you want smooth video playback).
--- End quote ---


--- Quote from: raft on March 31, 2010, 05:12:10 pm ---but i suppose you were doing this every frame ? in my case this is done once per bubble. indeed every time font size changes for each bubble but on Android font size wont change

--- End quote ---

Even still, the texture effect is a better option, because you will experience a 50-200 millisecond pause each time you add a texture, which players will notice as "hiccups" in the rendering, especially if several bubbles pop up around the same time.

raft:
i guess you are right as a rule of thumb but somehow texture creation is not noticable on this thing. not on emulator and not an actual device. possibly because the created text textures are very small in size. closest 2^n x 2^m to what you see on screen.

Darkflame:
The class's look really handy.

I'm working on a AR Browser and need on-the-fly generated text bubbles, so this seems appropriate.

One thing; What license do you consider this under? Though we are developing a free, open source, browser ourself (http://arwave.org/), we want people to be able to re-use and adapt our code for their own projects, even if their commercial. So we need to know any code we use if allowed for that :P

raft:
you can do anything with it ;)

Darkflame:
Thats fantastic, cheers :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version