Normal Mapping Animation

Aug 4, 2009 at 2:19 PM

Hi again- I posted previously about getting lighting to work with a custom shader on an animated character. We've got a new issue where we are now trying to put a normal map on an animated character. We get an unhandled InvalidOperationException : "Cannot use shader of type 'Xen.Ex.Material.vs6nb' with Vertices<System.Byte> object as it does not include element 'Tangent0'".

We've only got a few days left until the project is complete- this is really an added polish thing. But if we're doing something stupid, it'd be great to get it fixed.

 

You can see videos of our game here- http://www.youtube.com/fivearmedbandits

And read about the game here - http://daretobedigital.com/team-information/team.php?idTeam=421&team=2009

 

Thanks for your help previously- and wish us luck in the judging!

Coordinator
Aug 6, 2009 at 11:28 AM

Hi, I hope you get this in time. I'm flying out in 24 hours so as you might imagine I've been distracted... This issue means the model isn't generating tangent frames when being imported. If you are manually setting the normal map this will be the case. You can force tangents to be generated in the model import properties, something like 'generate tangent frames'. :-) I hope that helps and you get everything finished up! I look forward to checking out your game! Good luck!

Aug 8, 2009 at 10:52 PM

Oh good lord I can't believe that was so easy. You're a legend. I owe you a drink if I ever see you in real life- and one of our artists owes you his firstborn, apparently.

I'll post when a download is available for an exe.