@@ -9,14 +9,27 @@ If you're a Linux user, you'll find the sample programs in /usr/share/panda3d.
99
1010.. rubric :: Screenshots
1111
12- .. image :: screenshot-sample-programs-motion-trails.jpg
12+ .. image :: screenshot-sample-programs-motion-trails-fireball.png
13+ :width: 49%
14+
15+ .. image :: screenshot-sample-programs-motion-trails-framebuffer-feedback.png
16+ :width: 49%
1317
1418.. rubric :: Explanation
1519
16- This tutorial shows how to create motion trails in panda. The basic process is
17- this: after rendering the scene, you copy the scene into a texture. You apply
18- that texture to a full-screen quad. You integrate that quad into the rendering
19- of the next frame. That creates a feedback loop.
20+ These sample programs shows two different ways to create motion trails in panda.
21+ The first one is a geometry-based method, which uses the
22+ :py:class: `~direct.motiontrail.MotionTrail.MotionTrail ` class (which is a
23+ wrapper around the C++ class :class: `.CMotionTrail `) in order to extrude a
24+ cross-section of geometry along the path that an object takes. This method can
25+ be used to achieve a wide range of effects, and is usually applied applied to
26+ individual objects.
27+
28+ The second one is entirely different, and based around reusing the contents of
29+ the framebuffer in the following frame. The basic process is this: after
30+ rendering the scene, you copy the scene into a texture. You apply that texture
31+ to a full-screen quad. You integrate that quad into the rendering of the next
32+ frame. That creates a feedback loop.
2033
2134The basic steps are: create a texture that will hold the contents of the main
2235window. Tell the main window to copy is output into this texture using
0 commit comments