Skip to main content

History: Create outline around a character

Source of version: 2

Copy to clipboard
            Here is a script of user Telchar, which shows how to create an outline around a character, which works without shaders.

Screenshot of this effect, used in the game Torchlight:
{img fileId="2145"}


{CODE(wrap="1", colors="c++")}
material some/random/material/with/rim/effect
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture yourtexturehere.png
         }

         //rim lighting
         texture_unit
         {
            cubic_texture rim.dds combinedUVW
            tex_address_mode clamp
            colour_op_ex add src_texture src_current
            colour_op_multipass_fallback one one
            env_map cubic_normal
         }
      }
   }
}
{CODE}

Download of file ''rim.dds'':
http://www.ogre3d.org/forums/download/file.php?id=2022

The code was published here: 
http://www.ogre3d.org/forums/viewtopic.php?p=368918#p368918

Similar version:
http://www.ogre3d.org/forums/viewtopic.php?f=8&t=59079


        

History

Information Version
Wed 30 of Oct, 2013 03:55 GMT-0000 loath 5
Wed 30 of Oct, 2013 02:33 GMT-0000 loath 4
Mon 27 of Aug, 2012 21:50 GMT-0000 Beauty added link to support forum topic 3
Mon 27 of Aug, 2012 21:32 GMT-0000 Beauty tiny text change 2
Sat 25 of Aug, 2012 13:13 GMT-0000 Beauty NEW PAGE 1