Error generating shadow using OSGEARTH function

classic Classic list List threaded Threaded
1 message Options
Ms.Sun Ms.Sun
Reply | Threaded
Open this post in threaded view
|

Error generating shadow using OSGEARTH function

I use OSGEARTH2.5 to generate shadows and make errors in the type of conversion of the function. The code follows: OSGTerrainEngineNode* pTerriNode = dynamic_cast<OSGTerrainEngineNode*>(m_pMapNode->getTerrainEngine()); pTerriNode->getTerrainNode()->setNodeMask(ReceivesShadowTraversalMask); Unable to obtain pointer after conversion, resulting in unable to obtain getTerrainNode ();