![]() ![]() I'd like to create 3 curves in total, pass in the indices to create a bezier curve of varying width, and then draw it. The next step is to render the curve using GL_TRIANGLE_STRIP and control the width relative to height.Īccording to this quick discussion, a good way to solve my problem would be to find points that are parallel to the curve along both sides taking account the direction of it. I'm currently rendering the points using GL_LINE_STRIP. The start/end points are being positioned at dynamic coordinates on a fairly large sphere, so x/y/z varies greatly, making a static solution not so practical. I have 2 points in 3D space along with a control point that I am using to produce a bezier curve with the following equation:ī(t) = (1 - t) 2P 0 + 2(1 - t)tP 1 + t 2P 2 This is being done in OpenGL ES 2.0 on iOS, but the principles are universal, so I don't mind the answers being purely mathematical in form. I've been working on a problem for several weeks and have reached a point that I'd like to make sure I'm not overcomplicating my approach. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |