Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: flag-effect?

  1. #1
    Intern Contributor
    Join Date
    May 2001
    Location
    Austria
    Posts
    65

    flag-effect?

    Hi folks.

    I want to build a surface (rect) which is moving like a flag. now i have seen a example solving this problem with GL_QUADS. wouldn't it be easier to do it with a Bezier Curve and with what rule would i move the control point(s).

    thanks for your help,
    martin

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    718

    Re: flag-effect?

    Regardless of how you represent the flags surface (bezier surface or quad mesh) the easy way to make it move is to use some sine functions. Think of a sine curve moving along the length of the flag. The hardcore way to do it is of course to write a cloth sim and use that, but that might be a little overkill for a flag =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •