Deferred Shading in Mogre

BrainScan

04-05-2012 23:33:16

Has anyone had any luck translating the Deferred Shading code to Mogre? I am stuck right now because Mogre seems to be missing a few required classes.

CompositorLogic
CustomCompositionPass
RenderSystemOperation

Is there a way to do it without access to these classes?

Tubulii

07-05-2012 20:18:20

But I am afraid that is not possbile yet. I tried to port the Deferred Shading demo to Mogre but had to stop because Mogre does not support overriding/inheriting. It is not an alternate but you could focus on SSAO or DOF.

BrainScan

07-05-2012 22:58:06

So far I've gotten around the limitation of overriding by using ManualObject instead of SimpleRenderable. Not pretty, but in theory it will work. I was also able to avoid using CompositorLogic since it was only used for the SSAO portion of the demo and I was able to integrate bits of the SSAO in Mogre topic in place of CompositorLogic. So, all that remains is the stuff for the CustomCompositorPass. I'm trying my hand at wrapping that now, but with no prior C++/CLI experience, I'm not sure how far I'll get.

Tubulii

08-05-2012 07:21:32

So far I've gotten around the limitation of overriding by using ManualObject instead of SimpleRenderable. Not pretty, but in theory it will work
Oh. That will work of cause, but you are right, it's not pretty.

I'm trying my hand at wrapping that now, but with no prior C++/CLI experience, I'm not sure how far I'll get.
I am currently trying to extend Mogre to support overriding. I am not sure if I'll manage (my c++/cli experience is zero) it but I had some success with wrapping test-classes.