if we're only talking about 4 points and 2 triangles
Oh of course.
Well this could be done, but it is a bit more complicated. This
would only work with fixed widths. I'm currently using variable
widths. This approach pretty much has to recreate the trimesh each
time there are changes, but we could just update the vertex
positions (as you suggested) and flip the windings for all excess
characters. What about resizing? Wouldn't I need to create a new
trimesh for this? How fast could all this be achieved?
These are fair questions. It would certainly be a bit of work when
resizing the text, but on the other hand, it would be faster
(possibly much faster) to render, because you're feeding the system
a single object instead of hundreds.
I'll give it a shot. I don't think it is really that difficult to do.
I was actually doing it this way to begin with, but changed my mind
when the object cloning idea hit me. Now I realize that I may need
more text than I initially thought I would need.
If this approach is faster, I'll use it, if not, than I probably
haven't wasted too much time.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|