Difference between revisions of "PyPRP:Footstep Decals"

(New page: NOTE: This feature is not yet available in a release version of PyPRP. It is currently functional in the trunk version from the SVN, however, it's use and interface is subject to change wi...)
 
Line 2: Line 2:
  
 
== Introduction ==
 
== Introduction ==
 +
[[Image:FootMat.jpg|thumb|right|150px|Footstep material]]
 +
[[Image:Footprints.jpg|thumb|right|150px|Dynamic footprints]]
 +
Plasma has the ability to add footprint decals to visual surfaces that your avatar steps on. The only requirement for using this feature is setting up a material to represent a footprint.
  
 
== Setting up the materials ==
 
== Setting up the materials ==
 +
The simplest way to do this is to create a hidden plane somewhere in your age, and texture it with a simple footprint texture. The texture should be partially transparent, and generally foot-shaped. It can be a simple dark mark, or a sandy imprint like those found in Minkata. Once you have created and named this material in blender, you simply need to set up the footprint manager.
  
 
== Scripting ==
 
== Scripting ==
 +
Add the following script to any object, for instance, one of the surfaces you intend to have footprints on. Fill in the blanks with the name of the material you created, and the names of all the objects you want footprints to appear on in the targets list.
  
 
  <object name>:
 
  <object name>:
Line 15: Line 20:
 
                 matrtshade: <material ref>
 
                 matrtshade: <material ref>
 
                 targets:
 
                 targets:
 +
                - <scnobj ref>
 
                 - <scnobj ref>
 
                 - <scnobj ref>
  
 
== Activator regions (Puddles) ==
 
== Activator regions (Puddles) ==
 +
These will be available once implemented.

Revision as of 19:26, 18 May 2008

NOTE: This feature is not yet available in a release version of PyPRP. It is currently functional in the trunk version from the SVN, however, it's use and interface is subject to change without notice, and may be different at the time of release.

Introduction

Footstep material
Dynamic footprints

Plasma has the ability to add footprint decals to visual surfaces that your avatar steps on. The only requirement for using this feature is setting up a material to represent a footprint.

Setting up the materials

The simplest way to do this is to create a hidden plane somewhere in your age, and texture it with a simple footprint texture. The texture should be partially transparent, and generally foot-shaped. It can be a simple dark mark, or a sandy imprint like those found in Minkata. Once you have created and named this material in blender, you simply need to set up the footprint manager.

Scripting

Add the following script to any object, for instance, one of the surfaces you intend to have footprints on. Fill in the blanks with the name of the material you created, and the names of all the objects you want footprints to appear on in the targets list.

<object name>:
    logic:
        actions:
         - type: footmgr
           footmgr:
               matpreshade: <material ref>
               matrtshade: <material ref>
               targets:
                - <scnobj ref>
                - <scnobj ref>

Activator regions (Puddles)

These will be available once implemented.