Hi Felipe,

Felipe Gomez Caballero wrote:
> Hello everyone,
> 
> I have some questions and i hope you can help me with this. Right now
> I'm participating in a project in which we are using a 3D camera
> (SwissRanger SR4000) to get images from people at a fixed distance
> (silhouette and face details), but now we are trying to make face 3D
> models in realtime (with the data acquired from the camera). The image
> resolution is 176x144px and we can adjust the threshold for th
> distances (z-axis). So my question is, do you think it's a good idea
> to use OpenSG to create something like a "mesh" out of the data that
> we have? if this is possible, which geometry primitive do you think
> would be better to use? if you think that we should use any other lib
> / application to do this, which one do you think would be better?

You can use OpenSG to do this. The basic way is what Carsten explained: create a
Geometry for your basic mesh (176x144). That's really pretty small, you
shouldn't have a problem updating the positions in real time. I would not
recommend trying to do fancy remeshing on the fly, but just update the positions
and colors.

If you have a recent graphics card (G80 and up) you can also do this in the
vertex shader. Just create a fixed 2D 176x144 mesh, a texture for the color and
a texture for the depth. Then in a simple vertex shader read the depth and color
from the textures and use them for setting the z coordinate and the color of the
vertex before it goes into the triangle filler. We're doing something like that
for terrain, and it's pretty decently fast.

For that scenario all you have to do is update the textures and they come in,
and that's it.

Hope it helps

        Dirk

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to