Difference between revisions of "CellShadingNotes"

From SfzWiki
Jump to: navigation, search
(normal and specular maps)
(normal and specular maps)
Line 46: Line 46:
 
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=29685&highlight=specular+map
 
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=29685&highlight=specular+map
 
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=30803&highlight=specular+map
 
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=30803&highlight=specular+map
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=31523&highlight=specular+map
 
 
*http://www.3dtotal.com/team/Tutorials/leafproject/leaf_6.asp
 
*http://www.3dtotal.com/team/Tutorials/leafproject/leaf_6.asp
  

Revision as of 17:46, 8 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);
      }   
   }