0

Im trying to draw ( or make illusion of ) curved image like in this post :
Quadratic Curve with Rope pattern

or this one :
Gradient Stroke Along Curve in Canvas

in those examples the courve image is static . but now i like to give the curved image editing options :
using Bezier curve + handlers like in this post .
Bezier curve with three handles misplaces the control points

My Question is:
how can i combine the two ?
That is draw the image to be curved and also be editable using handlers

Community
  • 1
  • 1
user63898
  • 29,839
  • 85
  • 272
  • 514
  • I edit the question to be it more clear – user63898 Aug 15 '16 at 12:14
  • What did you try? Where are you stuck? – BeyelerStudios Aug 15 '16 at 12:16
  • i managed only to do the Bezier curve , translate it to c++ using OpenGL with simple drawline command . but i really what to do it with image – user63898 Aug 15 '16 at 12:39
  • You need to show the code of your approach, as it stands there are too many possible answers: drawing the rope to a texture, tesselating geometry along the curve and texturing it with the rope texture, transform a grid with the rope texture according to the curve in the vertex shader. – BeyelerStudios Aug 15 '16 at 13:39
  • Given your seven year frequenting of Stackoverflow: can you please improve your question by following [how to ask a good question](/help/how-to-ask)? Instead of just links to further posts, show images of what you need (with links if necessary, but have a self-contained question), and show the code you already wrote and where you got stuck? – Mike 'Pomax' Kamermans Aug 18 '16 at 00:57

0 Answers0