Hello,

My porting effort was quite successful until today. Unfortunately now
I'm facing a problem for which I don't have a proper solution. Let me
explain. The problem is with my capping code (there is a tutorial
example for that in general). May I ask you to look at the pdf file
showing my opensg model. I have uploaded the file at

drop.io/opensg_renderengine

I'm in trouble with the model part found in the 'Clip Plane Geometry'
block at the lower right of the image. For each model entity I have a
'selectNode' which contains of a 'geometryPart' node and one
'clipPlanePartNode' (and perhaps some other stuff). The
'clipPlanePartNode' consists of a number of 'Clip Plane Geometry'
blocks, one for each active clip plane. Now, the model is only rendered
correctly if for each block the 'materialNode1' is rendered first and
after that the 'materialNode2' is rendered. After that the next block
may be rendered. That is I must ensure a strong corrrelation of the
render order between 'materialNode1' and 'materialNode2'. It is not
correct to render all 'materialNode1' parts and after that to render the
'materialNode2' parts. I.e. no state sorting is allowed to happen here.
The correct render order must go as follows:

materialNode1.1
materialNode2.1
materialNode1.2
materialNode2.2
materialNode1.3
materialNode2.3
materialNode1.4
materialNode2.4
...

In OpenSG 1.8 I first used the StateSortingGroup class. After some
experimenting I discovered that the usage of this node is not necessary
at all. However, this does not hold for OpenSG 2.0 anymore. Even worst,
the StateSortingGroup class has been removed completely. The usage of
sortKeys is , IMHO not a proper solution since that would introduce a
global counter which I do not prefer. 

So my questions go as follows:

1. Is there any existing functionality in OpenSG 2.0 which I can use to
solve my problem?
2. Isn't it a good idea to propose a group node which defines that its
children are always rendered in the order the children list?
3. Why does the StateSortingGroup node has gone?

Any help is very much appreciated.

With best regards
Johannes Brunen

P.S.: I hope that the model image is more or less self explaining.


____________
Virus checked by G DATA AntiVirusKit
Version: AVF 19.509 from 25.08.2009
Virus news: www.antiviruslab.com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to