Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Editing Geometry Models > Drawing a ribbon following a model

Drawing a ribbon following a model

Trailing ribbon can be thought as a colored ribbon following a flight or helicopter. It can be used to represent banners or streamers dragged by the aircraft, or demonstrate the flight paths in military simulations. A ribbon is never a simple quad. Its points are located on the flight line and they will go after the animated plane all the time. All these demands require a dynamic geometry in which all vertices are moving.

With the information provided in the last paragraph, now we can start working on the interesting topic.

How to do it...

Let us start.

  1. Include necessary headers:
    #include <osg/AnimationPath>
    #include <osg/Geometry>
    #include <osg/Geode>
    #include <osg/MatrixTransform>
    #include <osgDB/ReadFile>
    #include <osgViewer/Viewer>
    

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint