Hello Sadi,
Sadi Tanis wrote:
> Hi,
> I´m working on an openSG based system to simulate gymnastic exercises.
> I'm pretty much at the beginning of it but here is an owerview of what
> I've done yet:
>
> First I have created a 3D model of a wooden puppet
> (http://www.uni-koblenz.de/~saditanis/Gliederpuppe.jpg) as it is used in
> artwork in 3DStudioMax. The VRML-File is now loaded in OpenSG.
>
> I need to code the joints between the parts of the body so that a
> student who uses the model can create an animation clip by moving the
> joints. How can I realize that. I don't know how to split the loaded
> model into parts.
if your VRML has the model split into different parts OpenSG will
normally retain that hierarchy. In that case you basically only need to
find the parts in the scenegraph. This can be done by naming the parts
in the VRML file, OpenSG will put these names as NameAttachments on the
corresponding nodes (you can use the functions getName, setName to
access/modify the value of a NameAttachment).
If your VRML only contains a single geometry, I guess your best bet is
to go back to the modeling program you used and try to have it export a
hierarchy of objects instead. Doing this inside OpenSG is probably a lot
more work, especially if you do not turn of the striper (it runs by
default to speed up rendering of geometries. Pass a different GraphOpSeq
to SceneFileHandler::the().read("filename", graphopseq), or just NULL).
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users