Difference between revisions of "CellShadingNotes"

From SfzWiki
Jump to: navigation, search
(links about celshading)
 
(10 intermediate revisions by one user not shown)
Line 2: Line 2:
  
 
discussion in our forum : http://freegamer.schattenkind.net/index.php?t=msg&th=209
 
discussion in our forum : http://freegamer.schattenkind.net/index.php?t=msg&th=209
 +
 +
== links about celshading ==
  
 
* cel shading effect in gtkradiant 1.5.0 for warsow, q2 map script ?
 
* cel shading effect in gtkradiant 1.5.0 for warsow, q2 map script ?
Line 8: Line 10:
 
* nehe opengl celshading tutorial : http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=37
 
* nehe opengl celshading tutorial : http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=37
 
* article on gamedev.net : http://www.gamedev.net/reference/programming/features/celshading/
 
* article on gamedev.net : http://www.gamedev.net/reference/programming/features/celshading/
 
+
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=34864
 +
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=31334  Cel Shading and Texture
 +
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=35259&highlight=
 +
* [http://g3d-cpp.sourceforge.net/gallery-robot.jpg cels-shader shot] todo : look if this shader is available under bsd license
  
 
== other stuff about shaders ==
 
== other stuff about shaders ==
Line 33: Line 38:
 
* http://www.ati.com/developer/techpapers.html#gdc05
 
* http://www.ati.com/developer/techpapers.html#gdc05
 
* http://www.terathon.com/index.html
 
* http://www.terathon.com/index.html
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=34864
+
* http://www.gamasutra.com/features/19981009/multitexturing_01.htm  specular (light) map
* http://www.ogre3d.org/phpBB2/viewtopic.php?t=31334 Cel Shading and Texture
+
* http://www.3dtotal.com/team/Tutorials/leafproject/leaf_6.asp
 +
 
 +
== normal and specular maps ==
 +
 
 +
* ogre normalmapping demo
 +
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=28871&highlight=specular+map
 +
*http://www.ogre3d.org/phpBB2/viewtopic.php?t=30487&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.3dtotal.com/team/Tutorials/leafproject/leaf_6.asp
 +
 
 +
== snippets ==
 +
generate mesh tangent vectors by code
 +
<pre>
 +
  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);
 +
      } 
 +
  }
 +
</pre>

Latest 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);
      }   
   }