ScratchData LogoScratchData
Back to TheLogFather's profile

Raster 'ghosted' quad-fill performance test

THTheLogFather•Created May 8, 2015
Raster 'ghosted' quad-fill performance test
45
32
1085 views
View on Scratch

Description

This is to go along with the ghosted tri-fill project - probably be good to use for translucent surfaces in 3d rendering. The new pen alpha feature allows drawing with semi-transparency. However, it's not easy to get a uniform transparency because of the 'overlap problem' - if you draw over the same region twice, you get 'double-strength' opacity. The quad fill here uses a rastering method to draw only horizontal lines that don't overlap each other, thus ensuring a uniform fill. Interestingly, Flash renders horizontal lines *much* quicker than vertical (but it makes no difference to the actual script execution time). Consequently, the performance isn't a total flop when compared to filling two triangles with the really fast hybrid tri-fill.

Project Details

Project ID61188592
CreatedMay 8, 2015
Last ModifiedMay 9, 2015
SharedMay 9, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root