Skip to reading
Shaders, Effects & Layered Scenery

39. Attach points are named sockets

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page

An attach point gives a useful name to a position and orientation on an entity. A hand can have right_hand_grip, an engine can have exhaust, and a torch can have flame_top. The names describe where an effect belongs rather than where the character happens to be standing.

Source table from 39. Attach points are named sockets, page 43
Part of the linkExample
Source / childThe Particle object hand_orb. This is the thing that moves to follow.
Target / parentThe live player instance ada, also available as player when active.
Target Attach Pointright_hand_grip on the player.
Attachment OffsetA small adjustment measured relative to that point’s orientation.
Own Attach PointA point on a carried prop when one prop point must meet the hand point. Particle attachment normally uses the emitter origin.

The link is updated as the target moves. A point bound to a skeleton bone also follows that bone’s animation. A point that is merely near the hand in object space follows the character root, but it will not stay in the hand when the arm moves.

A surface shader travels with its object: attach that object if a glowing prop should follow a hand. A screen shader belongs to the view and cannot be socketed onto a bone. For a local magical effect, attach an ordinary shader-covered object or an authored particle emitter.

Create the target entity and point before linking the emitter. A name that looks right in a text box is not proof that a point with that exact name exists on the live target.

Page 43 of 93Permalink
Go to page