Hello All:
I am not sure but it seems you could create a single texture with
different positions of the Avatar. For sprite animation you can setup
a normalized 0..1 tex coordinate then set the Texture Matrix to turn
that into a window within that texture to use. The texture matrix is
very light weight to modify values over time and on-the-fly. I
honestly don't have experience in Avatar animation so others on the
list may have a much better solution than this. It just seems if you
don't want to use shaders then adjusting a texture matrix to setup the
current scale and translation into the texture would be a feasible
solution.
Take care
Garrett Potts
On Jun 8, 2009, at 6:07 AM, Joseba Rodriguez wrote:
Hi all,
Sorry for not providing much information about the interest of
changing text coords. Im working on animating avatar impostors for
which im using a billboard with a texture (sprite) of an avatar.
With OSG its easy to implement a special kind of billboard for
managing sprite animations depending of the point of view of the
camera, but using setTexCoordArray is slow (perhaps, as you pointed
out, im using compiled lists). At this moment i prefer not to use
GLSL, as im already using other shaders on the nodes, but this is a
possibility if i find out that there is an efficient alternative.
Thans for your help.
J.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13682#13682
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org