Cel Shading


26-10-2005 01:49:00

I'm trying to get Cel Shading to work with OgreDotNet. From the C++ examples I've seen you have to do the following:

sub = ent->getSubEntity(0);
sub->setCustomParameter(CUSTOM_SHININESS, Vector4(35.0f, 0.0f, 0.0f, 0.0f));
sub->setCustomParameter(CUSTOM_DIFFUSE, Vector4(1.0f, 0.3f, 0.3f, 1.0f));
sub->setCustomParameter(CUSTOM_SPECULAR, Vector4(1.0f, 0.6f, 0.6f, 1.0f));

However, "setCustomParameter" isn't a function of EntitySub in OgreDotNet.

When I just call SetMaterialName, everything appears completely black. -- I'm thinking this is because the CustomParameters aren't being set.

Thanks again,


26-10-2005 06:47:03

I'm slowly starting to follow how the SWIG stuff works so for this problem it appears that Ogre::Renderable methods arn't available from C# yet and setCustomParameter on SubEntity comes from the fact it inherits from Ogre::Renderable