Hi Bruno,

Bruno Morabito wrote:
> Dear All,
>  
> I have a simple scene with a single geometry and material  loaded from a 
> VRML file
> with the SceneFileHandler class.
> I 'm using  the MakeTransparentGraphOp class with the default value of 
> 0.5 to set the transparency
> from my application but it seems that it doesn't work as expected.
> The transparency effect is not applied to the geometry and further a lot 
> of artifacts are showed 
> (I knew that the class perfomed some sort of backface culling...)
> Could you give me some hints to resolve this problem?

It does add BFC, but only for SimpleMaterials. When loading from WRL you will 
have ChunkMaterials, which are not changed in that respect. Honeslty, I don't 
know why not. Can you try adding the PolygonChunk part to the ChunkMaterial 
case 
in MakeTransparentGraphOp::applyTransparency?

In general transparency will have sorting issues on most non-trivial 
geometries, 
but try the BFC piece and if that doesn't work please put up a screenshot 
somewhere.

Thanks

        Dirk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to