Discussion:
[Opensg-users] OpenSG 2 - COLLADA animation support - shadows and clustering
Victor Haefner
2014-05-23 15:27:39 UTC
Permalink
Hi all,


I have the following questions:

Animations:
What is the best way if I want to import animations from a collada file?
does OpenSG allready parses that information? I would like to avoid to
manually parse the collada file ;)

Shadows:
I have a scene where I use the SimpleShadowmapEngine (without deferred
shading), but it doesnt play nice with cluster application (only black
artifacts everywhere), where should I start looking? May it be a shared lib
that is not loaded when starting the cluster server?

I start my servers like that (I tell him to load everything there is ^_^ ):
libs="OSGBase:OSGContribCSMSimplePlugin:OSGContribWebInterface:OSGGroup:OSGUtil:OSGCluster:OSGContribCSM:OSGDrawable:OSGImageFileIO:OSGWindowGLUT:OSGContribBackgroundLoader:OSGContribGUI:OSGDynamics:OSGState:OSGWindow:OSGContribCgFX:OSGContribPLY:OSGEffectGroups:OSGSystem:OSGWindowX:OSGContribComputeBase:OSGContribTrapezoidalShadowMaps:OSGFileIO:OSGText"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64/debug && export
OSG_LOAD_LIBS=$libs && ./VRServer -w -m localhost -geometry 512x512+0+0


Best Regards,
Victor
Carsten Neumann
2014-05-26 12:23:03 UTC
Permalink
Hello Victor,
Post by Victor Haefner
What is the best way if I want to import animations from a collada file?
does OpenSG allready parses that information? I would like to avoid to
manually parse the collada file ;)
In general OpenSG does try to load animations from collada files,
however, it is possible that some tweaks are required in order to
support the way a specific tool represents animations in a collada file.
IIRC, the information should be stored in an attachment on the root node
of a scene. You can take a look at
Examples/Advanced/Character/character.cpp:initAnimationsEnterFunc, which
uses OGRE files, but should otherwise be quite similar.
Post by Victor Haefner
I have a scene where I use the SimpleShadowmapEngine (without deferred
shading), but it doesnt play nice with cluster application (only black
artifacts everywhere), where should I start looking? May it be a shared
lib that is not loaded when starting the cluster server?
Hmm, I don't think SimpleShadowMapEngine requires additional libs and if
it did I'd expect it to crash rather than produce wrong images without
those libs. Black (blocky) artefacts are sometimes a sign of incorrect
bounding boxes (since these are used to find the projection needed to
render the scene from the light source's point-of-view). If bounding
boxes on the cluster nodes are correct it might be helpful to run the
nodes under an OpenGL debugger in order to look at the shadow map
textures generated by the SSME.

Cheers,
Carsten

Loading...