ScratchData LogoScratchData
Back to Zro716's profile

Triangle Fill Techniques

ZRZro716•Created July 19, 2014
Triangle Fill Techniques
17
5
751 views
View on Scratch

Description

Update 5/8: Added transparency, and it apparently slows down rendering a lot. Update 4/4: Added benchmarking for three variants: axis-aligned (red), two-side interpolation (green), and one-side interpolation (blue). Click Start Benchmarking to have the program graph performance for comparison. Press space to cycle between methods. Thanks to @TheLogFather for the original scripts. I replaced his version of @Jamohyperturbopro's fast tri fill script with my custom-made triangular integration filler. It is based off of @DCPU-16's scanline triangle. The major advantage of this method is a fix for off-screen rendering. However, it comes at the cost of some speed for backend processing. Speed can be increased by cutting down on the number of scanlines by increasing resolution.

Project Details

Project ID24870455
CreatedJuly 19, 2014
Last ModifiedJuly 21, 2015
SharedJuly 19, 2014
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root