I tried to make cel shade but I failed. I read a lot of tutorial about that, Like this:
http://www.ogre3d.org/tikiwiki/tiki-ind ... CelShading
I have this line in the plugins.cfg:
Plugin=Plugin_CgProgramManager
And I set the object materialname.
The cel shade is working in my computer, because some demo (Without source code of course ) working.
The basic tutorial in the ogredsk not working either, it throw an exeption: "Unable to start program.... some destination...Sample_celshading.dll"
Please someone tell me how to make cel shade. And if it possible, only with c++ code. I mean how to do without "random" files, because I want to make custom colored lines, and with this files I can't, just only predefined colors.
Pc:
Ogredsk 1.8
Win 7 64 bit
Visual Atudio 2010
this code load the texture for all object:
Code: Select all
bool Mainscene::loadtexture(string nev)
{
Ogre::MaterialPtr mat = Ogre::MaterialManager::getSingleton().create(nev, Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
mTextureustate=mat->getTechnique(0)->getPass(0)->createTextureUnitState(nev+".png");
mEntity->setMaterialName("cs");
//mSubentity = mEntity->getSubEntity(0);
//enum ShaderParam { SP_SHININESS = 1, SP_DIFFUSE, SP_SPECULAR };
//mSubentity->setCustomParameter(SP_SHININESS, Ogre::Vector4(10, 0, 0, 0));
//mSubentity->setCustomParameter(SP_DIFFUSE, Ogre::Vector4(0, 0.5, 0, 1));
//mSubentity->setCustomParameter(SP_SPECULAR, Ogre::Vector4(0.3, 0.5, 0.3, 1));
return true;
}