Hello Victor, On 06/02/2014 07:47 PM, Victor Haefner wrote: > I tried to debug the shadows on cluster applications and I am somewhat > stuck. > > Using gDEBugger I can confirm that the shadow map is like scrambled.. > I am not sure how to eliminate bad bounding volumes, I tried > > Vec3f min,max; > root->getNode()->updateVolume(); > root->getNode()->getVolume().getBounds( min, max ); > > for each frame, but this did not help. > Is it possible to have wrong bounding volumes for the cluster > application but not for the local application? (everything looks perfect > on the local application)
well, they shouldn't, but since something appears to go wrong... ;) Perhaps as a quick way to confirm if this is actually the cause, you could print the bounding boxes on the server machines and compare to local ones? > Any hint on how to better debug? My approach for this sort of thing is often to insert some output at strategic places in OpenSG to get a better idea which steps are being performed, e.g. in the *ShadowTreeHandler class for the mode of the ShadowStage that you use, check if the all steps of the algorithm run, and if they use sane settings. Comparing the projections used when running in the cluster vs. locally could give another hint if the bounding boxes are off. I would suggest trying to find out first if the shadow map is broken because it is rendered at very low resolution (i.e. with a giant frustum for the projection) or if the generation step is perhaps not run at all (or at the wrong time). Cheers, Carsten ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users