Hello Johannes,
Johannes Brunen wrote:
> finally, I have found a way to render the overlapping clipped geometries
> correctly. Actually, two ways lead to the desired behavior:
>
> The first possibility is the usage of sort keys which must then grow with
> the number of used geometries. This is of course unforunate. This case is
> the one you explained to me.
> The second possibility is the additional introduction of a StateSortingGroup
> core carrying node into the geometry's tree. By doing this, sort keys are
> not used at all. Only the order in which the nodes are added to the parent
> node are then of importance.(?)
can you believe it, I did not know about the StateSortingGroup? I'm
happy you were able to find a way to make this work :)
> In the last example, which we have exchanged there was still an error
> preventing proper functioning with multiple bodies. It does share the plane
> node(s) which is of course not possible in OpenSG. Instead the plane
> geometry cores has to be shared.
oops, I missed that.
> I have done a complete code clean up and some documentation as you can see
> below. I switched from the home made FCEditGuard to the CPEditor utility.
> Actually, I did kow about the CPEdit/CPEditAll macros. I find the usage of
> the FCEditGuard/CPEditor style with using of curly brackets more cleaner and
> readable. However, this is only a matter of taste.
>
> I hope that the code is now fine and can be found its place into the
> tutorials.
Definitely! Many thanks for not only figuring out a way to implement the
capping nicely but also taking the extra effort building (and cleaning
up) this nice example. Your contribution is much appreciated!
Thanks,
Carsten
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users