The Shadows demo crashes for me when I switch to Plane Optimal texture shadows. The following assertion is failing in the setExtents method of OgreAxisAlignedBox.h:
Code: Select all
assert( (min.x <= max.x && min.y <= max.y && min.z <= max.z) &&
"The minimum corner of the box must be less than or equal to maximum corner" );
A couple of strategically placed printfs show that min.x is larger than max.x, and that the actual value of both depends on the camera position. If I start the demo at 1600x1200 and don't move the camera, min.x is 0.045517 and max.x is -0.060942. I know this isn't a valid fix, but everything seems to render nicely if I add "if (min.x > max.x) min.x = max.x;" before the assertion.
Any thoughts? I'm a C++ and Ogre noob, but can investigate if nobody knows why this is happening.