ScratchData LogoScratchData
Back to raucket's profile

Prototype: Back-face Culling

RAraucket•Created October 8, 2014
Prototype: Back-face Culling
29
20
379 views
View on Scratch

Instructions

Demo of a 3D cube with back-face culling Look, you can see inside the cube?! ;-)

Description

My attempt at back-face culling. Haven't completed the math for more dynamic sizes and positions yet, but It's doable. Still need to make some kind of object-sorting algorithm... Now I'm using triangles instead of squares/rectangles to make the faces. Putting together two triangles makes a square/rectangle. Also added some light-effects depending on the visible face-side. Can still be faster if I optimize the filler, but this will do for now. And then there is clipping, phew, still some skills to master here...

Project Details

Project ID29033282
CreatedOctober 8, 2014
Last ModifiedOctober 14, 2014
SharedOctober 8, 2014
Visibilityvisible
CommentsAllowed