From: Uwe Wössner (woessner++at++hlrs.de)
Date: 09/16/2003 02:07:09
I am having a strage problem with sorting transparent geometry back to
front.
I have set up my channels as follows:
Chan->setTravMode(PFTRAV_CULL, PFCULL_VIEW|PFCULL_SORT);
Chan->setBinSort(PFSORT_OPAQUE_BIN, PFSORT_BY_STATE, NULL);
Chan->setBinSort(PFSORT_TRANSP_BIN, PFSORT_BACK_TO_FRONT, NULL);
I am then sorting transparent GeoSets to the transparent bin and opaque
ones to the opaque bin.
My Scenegraph is deep and has a lot of DCSes.
The problem now is that transparent geometry does not get sorted back to
front.
However if I attach a draw callback to each geode, it works, the
geometry is sorted back to front.
I could have imagined the opposite.
The manpage says that depth sorting spans draw callbacks and State
sorting does not. So I could imagine that the transparent bin is state
sorted after being sorted back to front, unless the draw callback
pervents state sorting, could that be? If so, how could I disable state
sorting on the transparent bin?
Any help would be appreciated!
I am working with Performer 3.0.2 on Linux.
Regards,
Uwe
--
\\\|/// *Rechenzentrum Universitaet Stuttgart*
_I_ ( o o ) *Visualisierung* _I_
(_++at++_)----oo0O--(_)--O0oo----------------------------------------(_++at++_)
| | Uwe Woessner woessner++at++hlrs.de | |
| | .ooo0 http://www.hlrs.de/people/woessner/ | |
|_| ( ) Oooo. Phone: +49-711-685-5790 |_|
(_++at++_)---------\ (---( )---------------------------------------(_++at++_)
I \_) ) / I
(_/
This archive was generated by hypermail 2b29 : Tue Sep 16 2003 - 02:23:47 PDT