Hello Daniel,

try to add a BlendChunk to your code, i.e. your code starting at line  
86 in AnnotationLabel.cpp should look like this:

---
     MaterialChunkPtr matChunk = MaterialChunk::create();
     beginEditCP(matChunk);
     {
         matChunk->setAmbient(Color4f(1.f, 1.f, 1.f, 1.f));
         matChunk->setDiffuse(Color4f(1.f, 1.f, 1.f, 1.f));
         matChunk->setEmission(Color4f(0.f, 0.f, 0.f, 1.f));
         matChunk->setSpecular(Color4f(0.f, 0.f, 0.f, 1.f));
         matChunk->setShininess(0);
     }
     endEditCP(matChunk);

     BlendChunkPtr blendChunk = BlendChunk::create();
     beginEditCP(blendChunk);
     {
         blendChunk->setSrcFactor(GL_SRC_ALPHA);
         blendChunk->setDestFactor(GL_ONE_MINUS_SRC_ALPHA);
     }
     endEditCP(blendChunk);

     ChunkMaterialPtr m = ChunkMaterial::create();
     beginEditCP(m);
     {
         m->addChunk(texChunk);
         m->addChunk(matChunk);
         m->addChunk(blendChunk);
     }
     endEditCP(m);
---

Bye,

Patrick


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to