Johannes Behr wrote:

Hi,

This is the main reason I converted it over to non-indexed. The code was just so complex that it seemed like it would be difficult to extend and to add support for adding new text to existing geom. I was also a little concerned about the maintenance issues of having to modify code that complex (in other words, I was scared that I would introduce bugs that I didn't understand).

If you think multi-index is really that important, I can revisit the code and try to create a new version that brings back multi-indexing.

What about TriangleStrips? Does the Font lib generate optimized
primitives?

The code uses quads. It could be converted to use 2 tris pretty easily. I don't think tri-strips would help much though since all the strips would contain just 2 triangles.

- Added color data to the geometry to allow for colored text
Ok. Adds some overhead to the geometry when you do not need the color.

Which is the most time. It's a lot overhead on memory (it's one color
per vertex) + rendering. We should make this optional. Maybe by
passing a color pointer which has a Null default value.
It does increase memory consumption by ~25% for text (with multi-indexing it would probably be less then 10%). I didn't really try to optimize this since text takes up so much less memory then the models in the scene. If there is concern, then it should probably be addressed.

I think this all still comes back to the question of multi-indexing or not multi-indexing. From what I have been told multi-indexing hurts rendering performance. Combining that with the added complexity of the code I just went with the straight data buffers since performance and clarity were more of a concern for me then memory consumption.

If the consensus is that memory consumption should be the top priority, then I will go back and modify the code accordingly.

-Allen

regards,
 johannes




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to