We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › curved vertex texture
Page Index Toggle Pages: 1
curved vertex texture (Read 521 times)
curved vertex texture
Feb 15th, 2008, 9:58am
 
Hi,

Is it possible to use a PImage along a curveVertex, rather than a vertext, or would I have to handle all the vertext / texture mapping myself through a long series of vertices?

Apologies if this isn't particularly good description.

thanks,

Ryan
Re: curved vertex texture
Reply #1 - Feb 16th, 2008, 12:10am
 
heh, well intuitively since there isn't a curvevertex with the  u and v parameters at the end, there isn't.

But, you can optimize putting vertexes on a curve by evaluating curvePoint() and bezierPoint() with a float d that goes back and forth from 0 to 1.

but, yeah, just think about what exactly you need to do, and you'll find a way. Mathematics go alooong way for texture mapping :heh:
Page Index Toggle Pages: 1