ShadowTextureCasterPreViewProj or alternative

TeaBag

04-10-2010 11:54:28

Hi,

I'm using the Mogre 1.7.1 version that came with the latest SDK.

I was trying to start to use Mogre 1.7.1 in my projects (that use a older version of Mogre) and I had a sample there where I used the ShadowTextureCasterPreViewProj event (in the SceneManager object).

Well, that event doesn't exists in the new Mogre assembly.

Did it change its name?
Or do I have to achieve the same result with an alternative? If so, can anyone tell how?

Thanks,
Luis

smiley80

04-10-2010 20:45:41

Looks like you have to use a listener instead:
class MySceneManagerListener : SceneManager.Listener
{
public override void ShadowTextureCasterPreViewProj(Light light, Camera camera, uint iteration)
{
}
}

sceneMgr.AddListener(new MySceneManagerListener());

TeaBag

06-10-2010 11:47:58

Hi,

Thanks for the tip. I will try it right now.

Best,
Luís