No Manual Object Stencil Shadows

Minor issues with the Ogre API that can be trivial to fix
Post Reply
User avatar
Kaylx
Greenskin
Posts: 123
Joined: Sun May 22, 2011 10:45 pm
Location: Scotland
x 7

No Manual Object Stencil Shadows

Post by Kaylx »

Hey peeps,

I noticed this issue when I decided I didn't want to convert my ManualObject to a Mesh as the geometry was unique and would never be cloned.
Anyway, as i found out, shadows would not show up. The batch count etc went up as if it was trying to render them but there was no visible results.
After digging about i managed to fix it by calling Ogre::VertexData::prepareForShadowVolume for each manual object section.
As it turns out the Mesh class does this for you internally so you don't need to worry about it, but the ManualObject class doesn't.

It would be good if someone could incorporate the fix properly into the ManualObject class. :)
IPC
Gnoblar
Posts: 11
Joined: Mon Aug 06, 2012 8:46 pm

Re: No Manual Object Stencil Shadows

Post by IPC »

Big thank you !!!!
You are the best !!!!
Post Reply