Hello Johannes,
Johannes Brunen wrote:
> now I have understood what was wrong.
>
> How can I force rendering to draw the geometries independently from each
> other? I.e. to draw each branch with the proper stencil settings independent
> of the settings of other geometry branches?
>
> Doing this should, imho resolve the overlapping problem.
>
>> scene [Group]
>> |
>> geoTrafo [Transform]
>> |
>> +----------------+------------------------+
>> | | |
>> mat1 [MatGroup] mat2 [MatGroup] mat3 [MatGroup]
>> | | |
>> geo [Geo] planeTrafo [Transform] geo [Geo]
>> |
>> planeGeo [Geo]
>>
> foreach (geoTrafo)
> group1(mat1) -> group2(mat2) -> group3(mat3)
hm, the only thing I can think of would be the material sort key. Given
ng geometries and np clip planes you would need to do 2 * np * ng + 1
passes:
(geo1 plane1) (geo1 plane2) geo1
0 1 2 3 8
(geo2 plane1) (geo2 plane2) geo2
4 5 6 7 8
I'm not sure if that is practical even for relatively small scenes, the
number of geometries is normally not something you want to have an
impact on the number of passes necessary.
Cheers,
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