Realtime 3d shadows
![Killer Assassin](https://games.phoneky.com/pics/killer-assassin1x.jpg)
![Tiny Fisher](https://games.phoneky.com/pics/tinyfisher1x.png)
![Valdi Shadows](https://games.phoneky.com/pics/valdishadows1x.png)
![Real Time Celester](https://games.phoneky.com/pics/realtimecelester1x.png)
![3D Material Capture](https://games.phoneky.com/pics/3dmaterialcapture1x.png)
![Terry The Skeleton](https://games.phoneky.com/pics/terrytheskeleton1x.png)
![Catapultz.io](https://games.phoneky.com/pics/catapultzio1x.jpg)
![Sheep Fight](https://games.phoneky.com/pics/sheep-fight1x.jpg)
![Takeover](https://games.phoneky.com/pics/takeover1x.jpg)
![A Very Warm Fire](https://games.phoneky.com/pics/averywarmfire1x.png)
![constant companion shorten your tweetcart constants!](https://games.phoneky.com/pics/constantcompanionshortenyourtweetcartconstants1x.png)
![Chasm of Screams](https://games.phoneky.com/pics/chasmofscreams1x.png)
![StreetWalker](https://games.phoneky.com/pics/streetwalker1x.png)
![Elsa Scary Halloween Makeup](https://games.phoneky.com/pics/elsa-scary-halloween-makeup1x.jpg)
![Tris VIP Dolly Makeup](https://games.phoneky.com/pics/tris-vip-dolly-makeup1x.jpg)
![Sery Actress Dolly Makeup](https://games.phoneky.com/pics/sery-actress-dolly-makeup1x.jpg)
![Exotic Princess Makeup](https://games.phoneky.com/pics/exotic-princess-makeup1x.jpg)
![Dotted Girl Halloween Makeup](https://games.phoneky.com/pics/dotted-girl-halloween-makeup1x.jpg)
![TrollFace Quest: Horror 3](https://games.phoneky.com/pics/trollface-quest-horror-31x.jpg)
![Moon Clash Heroes](https://games.phoneky.com/pics/moon-clash-heroes1x.jpg)
![Juicy Run](https://games.phoneky.com/pics/juicy-run1x.jpg)
![Shadows of Dunwich 2.0](https://games.phoneky.com/pics/shadowsofdunwich201x.png)
![Fill Pattern Catalogue](https://games.phoneky.com/pics/fillpatterncatalogue1x.png)
![(Touhou Unmei no Hoshi)](https://games.phoneky.com/pics/touhouunmeinohoshi1x.png)
![Egypt](https://games.phoneky.com/pics/egypt1x.png)
![Santa 1080](https://games.phoneky.com/pics/santa10801x.png)
![Spirit Solstice](https://games.phoneky.com/pics/spiritsolstice1x.png)
![Hallowneste](https://games.phoneky.com/pics/hallowneste1x.png)
![Picodex - A Pokemon Battle Sim](https://games.phoneky.com/pics/picodexapokemonbattlesim1x.png)
![TweetTweetPlane](https://games.phoneky.com/pics/tweettweetplane1x.png)
![Tiny Platformer (TutorialExample Project)](https://games.phoneky.com/pics/tinyplatformertutorialexampleproject1x.png)
![Tiny Animator](https://games.phoneky.com/pics/tinyanimator1x.png)
![Wide Jelpi](https://games.phoneky.com/pics/widejelpi1x.png)
![Contra Demake (Version .73 fixed) Updated 21123](https://games.phoneky.com/pics/contrademakeversion73fixedupdated2112337381x.png)
![Teenage Mutant Ninja Turtles in Shredder's Prevenge APRIL UPDATE](https://games.phoneky.com/pics/teenagemutantninjaturtlesinshreddersprevengeaprilupdate1x.png)
![Thopter Escape](https://games.phoneky.com/pics/thopterescape1x.png)
![Antiban](https://games.phoneky.com/pics/antiban1x.png)
![Mot's Animation System](https://games.phoneky.com/pics/motsanimationsystem1x.png)
![Diggleoid](https://games.phoneky.com/pics/diggleoid1x.png)
![Climbmod - Interactive Teaser](https://games.phoneky.com/pics/climbmodinteractiveteaser1x.png)
![Sokoblox](https://games.phoneky.com/pics/sokoblox1x.png)
![Pico Froggo Hop Across the Seasons](https://games.phoneky.com/pics/picofroggohopacrosstheseasons1x.png)
![PiCAD (vector gfx authoringdisplay)](https://games.phoneky.com/pics/picadvectorgfxauthoringdisplay1x.png)
![Cliffside](https://games.phoneky.com/pics/cliffside1x.png)
![Metrash](https://games.phoneky.com/pics/metrash1x.png)
![Celeste Dark World](https://games.phoneky.com/pics/celestedarkworld1x.png)
![bigmap editor](https://games.phoneky.com/pics/bigmapeditor1x.png)
![To take root Among the Stars](https://games.phoneky.com/pics/totakerootamongthestars1x.png)
Realtime 3d shadows
Project started following a question on 3d clipping on this forum and quickly spiraled into a full blown 3d renderer with support for real-time shadows and camera space clipping :
Shadows are calculated in real-time by extruding a shadow volume from each lit face.
Resulting polygons are added to the face and renderedsorted with the face.
The shadows are globals e.g. self-shadowing is supported, see torus scene.
Performance-wise this is bordering what pico can support, as many clipping operations are required to generate shadow polygons. There is room for optimization (vertex cache, smart selection of clipping planes) left to the reader!
Sources
Project (including how to add custom 3d models) is available here: github
Acknowledgements:
3d papers from the 70s80s are pure gold!
trifill function from @p01
Update 1.1
fixed polygon gaps (using correct middle screen position + ceil)
License: -