🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Drawing a texture inside a polygon

Started by
-1 comments, last by Freeride Designs 24 years, 6 months ago
Whats the best way to produce land like in Worms.
Basically I have the points for a polygon and want to draw a texture inside it. If it makes it easier the bottom is always horizontal and there are no over hanging points, eg. if you go vertically down from anywhere within the polygon you will get to the bottom of the polygon without having to go out then back in the shape.

eg. Possible:

... ...
........... ...
.................

Not Possible:

.... ....
.... ..
..............

Hopefully you will understand this, the second diagram should show some over hanging points.

I'm using DirectX 7 and VB, code would be helpful but theory is fine.
Thanks for any help

Freeride Designs

[This message has been edited by Freeride Designs (edited December 16, 1999).]

----------------
Black Edge Games
----------------

This topic is closed to new replies.

Advertisement