Hi,

I'm having a problem about a geometry that doesn't show up when I'm running my program in clustering mode. In standalone everything's fine, but in clustering, the geometry doesn't show up. I've had a similar problem in the past that makes me believe the problem is in the ChunkMaterial. And I also use a similar geometry in another place (but it uses a different ChunkMaterial) that has no problems whatsoever.
I wonder if anybody has a guess about what the problem might be. The code that produces the chunk material used by this geometry is the following:

beginEditCP( pCMat );
    pCMat->getMFChunks()->clear(); // needed because I reuse the same chunk material, updating it's chunks
    BlendChunkPtr pBlendChunk=BlendChunk::create();
    PolygonChunkPtr pPol=PolygonChunk::create();

    beginEditCP(pPol);
        pPol->setCullFace( GL_BACK );
        pPol->setFrontMode( GL_FILL );
        pPol->setBackMode( GL_FILL );
        pPol->setFrontFace( GL_CW );
    endEditCP(pPol);
    beginEditCP( pBlendChunk );
       pBlendChunk->setSrcFactor( GL_ONE );
       pBlendChunk->setDestFactor( GL_ONE );
    endEditCP( pBlendChunk );

    pCMat->addChunk( getSHLChunk() );
    pCMat->addChunk( pBlendChunk );
    pCMat->addChunk( pPol );
    pCMat->setSortKey( 2 );
endEditCP( pCMat );

--
Bruno Marques
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://mega.ist.utl.pt/~blcm

Reply via email to