Hi Christian,
[EMAIL PROTECTED] wrote:
> Hi!
> I have a VRML model with a transparent texture, but when I load it
> into my application, the transparent pixels are completely black... is
> there any operation that I must do to load it correctly?
>
> This is my code:
>
> GraphOpSeq *seq = new GraphOpSeq;
> seq->addGraphOp(new MaterialMergeGraphOp());
> seq->addGraphOp(new PruneGraphOp());
> seq->addGraphOp(new StripeGraphOp());
> seq->addGraphOp(new SharePtrGraphOp());
> SplitGraphOp* go = new SplitGraphOp();
> go->setMaxPolygons(3000);
> seq->addGraphOp(go);
>
> node = SceneFileHandler::the().read(filename, seq);
That should work. Have you tried it without those GraphOps, to see if one of
them interferes?
Dirk
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users