Difference between revisions of "CellShadingNotes"

From SfzWiki
Jump to: navigation, search
(links about celshading)
(links about celshading)
Line 13: Line 13:
 
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=31334  Cel Shading and Texture
 
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=31334  Cel Shading and Texture
 
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=35259&highlight=
 
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=35259&highlight=
 +
* http://g3d-cpp.sourceforge.net/gallery-robot.jpg todo : look if this shader is available under bsd license
  
 
== other stuff about shaders ==
 
== other stuff about shaders ==

Revision as of 01:13, 14 September 2007

a few notes about cellshading experiments.

discussion in our forum : http://freegamer.schattenkind.net/index.php?t=msg&th=209

links about celshading

other stuff about shaders

normal and specular maps

snippets

generate mesh tangent vectors by code

 void CEntity::SetGenerateTangents(const STRING &meshType)
   {
      MeshPtr pMesh = MeshManager::getSingleton().load(meshType,
         ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,   
         HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY,
         HardwareBuffer::HBU_STATIC_WRITE_ONLY,
         true, true);

      unsigned short src, dest;
      if (!pMesh->suggestTangentVectorBuildParams(src, dest))
      {
         pMesh->buildTangentVectors(src, dest);
      }   
   }