Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [code] filled polygon

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 28th Oct 2023 07:42 Edited at: 28th Oct 2023 07:44
HI

I have adapted a code to AppGameKit, to filled a polygon, it works fine (no antialiasing, but it's good)





Cheers !
AGK2 tier1 - http://www.dracaena-studio.com

Attachments

Login to view attachments
JohnStabler
AGK Bronze Backer
10
Years of Service
User Offline
Joined: 16th Aug 2013
Location: Cardiff, Wales, UK
Posted: 1st Dec 2023 20:58
Very interesting.

I was working on a 2D top-down game that needed to create shadows, based on line of sight and needed the ability to draw triangles to create the shadow. Sadly I found the DrawLine() function too slow for complicated scenes. In the end I used the SetCameraFOV(1, 0) method and manipulated the vertices of a 3D triangle to do it. Still not fantastic performance, but it was good enough for what I needed.

Login to post a reply

Server time is: 2024-04-27 17:35:16
Your offset time is: 2024-04-27 17:35:16