Draw transparents Polygons without artefact

BlitzMax Forums/BlitzMax Programming/Draw transparents Polygons without artefact

Armitage 1982(Posted 2008) [#1]
Hi

I'm trying to render liquid area inside my 2d platform game using drawpoly



The problem is self explanatory.
I would like to visually get rid of those triangulate artefact.
The poly must be transparent !

Does anybody having any clue on this ?
A visual solution like farseer liquid would be very good (Alex ? Any idea how to ?)

Thanks :D


Armitage 1982(Posted 2008) [#2]
Hum... I think I will use vertical polygon for each height point
maybe this would do the trick ;)

[Edit]
This method working very well
Sorry for any derangement ^^


ImaginaryHuman(Posted 2008) [#3]
I think it simply was being caused by polygons being drawn on top of other polygons, because you were having all of them converge at the bottom center and therefore some of the wave edges were too variegated to avoid sort of `going back on yourself`.


Space_guy(Posted 2008) [#4]
yes you have to build that big polygon in a different way. Your going to have to add more vertices on the bottom line to really avoid this problem


Brucey(Posted 2008) [#5]
Given that you know the "end points" of those lines coming from that centre point, can't you just collate those to create a polygon?


xMicky(Posted 2008) [#6]
Could Polygon triangulation - subtracting ears method be helpful ?