i try to use an IAnimatedSceneNode with shadows and a ITextSceneNode at the same time. If the ITextSceneNode is visible the shadow was not drawn. but why?
To replicate this bug add some few code lines to the example project "SpecialFX" like this:
Code: Select all
//at first include the std string for a better string handling =)
#include <string>
//add the following code after room loading routine
node = smgr->addEmptySceneNode();
std::string l_tmp = "hello, this is a test!";
std::wstring l_tmpw;
for(size_t idx = 0; idx < l_tmp.size(); ++idx)
{
l_tmpw += l_tmp[idx];
}
scene::ITextSceneNode *l_text = smgr->addTextSceneNode(gui->getBuiltInFont(), l_tmpw.c_str(), video::SColor(1,250,250,250), node);
a strange bug =)
has anyone a solution for this problem??
cya
oli
an addition:
in the function "createShadowVolume" from class "CShadowVolumeSceneNode"
is a small bug. To prevent an access violation switch all "IndexCount *5" to "IndexCount*6" because in the bottom part of this function we fill the arrays "svp->vertices" with 6 elements not with 5 =)
cya...