Jump to content
  • Advertisement
Sign in to follow this  
Blackhart

OpenGL Tessellate a quad

This topic is 1545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

i would like tessellate a quad containing several points (2D + coordinates known).
Geometry can be of any shape (triangle, Quads), but must not be degenerate ...
 
In other words/pictures, here is my quad with points:
[attachment=23696:Quad_p_Points0.png]
 
And i would like have that:
[attachment=23697:Quad_p_Points.png]
 
The purpose of this operation is to benefit of the OpenGL color interpolation. In this case, each points is a color.
 
So, if you have ideas, one algo or even c++ code, i'm taker.
 
Thanks,
Blackhart.
Edited by Blackhart

Share this post


Link to post
Share on other sites
Advertisement

Look up Delaunay triangulation. The link itself is not very rich in information to actually implement it, but you can start to search from there. Just add the four corners of your quad to the list of interior points and triangulate. The bounding quad itself is not relevant to the triangulation but is just an additional constraint on your part in this case.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!