Skip to content

Commit 4b10daa

Browse files
committed
Update motion trails sample page to reflect soon-to-be-added sample
1 parent 5fab87d commit 4b10daa

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

more-resources/samples/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ Alternatively, you can download the samples separately from the download page.
100100

101101
.. rubric:: :ref:`motion-trails`
102102

103-
* Difficulty: Advanced
103+
* Difficulty: Intermediate (or Advanced)
104+
* Creating a trail behind a moving object.
104105
* Captures contents of screen and reuses it later.
105106

106107
.. rubric:: :ref:`music-box`

more-resources/samples/motion-trails.rst

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2134
The basic steps are: create a texture that will hold the contents of the main
2235
window. Tell the main window to copy is output into this texture using
50.4 KB
Loading
179 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)