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: Drawing 3D curve with varying width

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2014
    Posts
    21

    Drawing 3D curve with varying width

    I am trying to draw a curve in 3D in which the width may vary. I am doing something similar to what described in the following tutorial: http://www.merowing.info/2012/04/dra.../#.U1QkTOaSy-T

    Meaning, i create quads (and triangles) with the desired width instead of using OpenGL width. The problem is that the triangles are actually in 2D - they are drawn in a specific plane. The width will look different, of course, from different angles.

    Am i tackling this problem in the correct way? Is there a good solution for my problem?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    You may want to look at this

Posting Permissions

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