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