SkinnedModel Deferred

rated by 0 users
This post has 3 Replies | 1 Follower

Top 50 Contributor
Posts 95
SunBurn_Community_Licensee
SunBurn_Pro_Licensee
Wim Vancoillie Posted: 01-11-2010 2:35 PM

Hi all,

I'm trying to convert the skinned model example (downloaded from this site) from forward rendering to deferred rendering to integrate it in our engine.

When I run I get the following error:

System.Exception was unhandled
  Message="Deferred rendering does not support non-deferred effects. Make sure effects derive from IDeferredObjectEffect and model processors are set to a deferred processor."

Any one any idea where to start? I looked at the API documentation but can't find any example of implementing the IDeferredObjectEffect.

Kind regards,

Wim

Top 50 Contributor
Posts 123
SunBurn_Community_Licensee

In the Pipeline, SkinModelProcessor.cs Line 109

    change

      ModelContent model = context.Convert<NodeContent, ModelContent>(input, "LightingSystemModelProcessor");

to

      ModelContent model = context.Convert<NodeContent, ModelContent>(input, "DeferredLightingSystemModelProcessor");

 

Top 50 Contributor
Posts 95
SunBurn_Community_Licensee
SunBurn_Pro_Licensee

Thanks you Nelxon, your guide did solve my problem.

 

Top 50 Contributor
Posts 123
SunBurn_Community_Licensee

No problem, glad I could help :)

Page 1 of 1 (4 items) | RSS