Realtime 3d shadows
Realtime 3d shadows
by freds72

Plese be patient...

Loading...

Killer AssassinKiller Assassin Tiny FisherTiny Fisher CrysticalCrystical Catapultz.ioCatapultz.io Sheep FightSheep Fight TakeoverTakeover A Very Warm FireA Very Warm Fire Elsa Scary Halloween MakeupElsa Scary Halloween Makeup Princess Wardrobe Perfect Date 2Princess Wardrobe Perfect Date 2 Tris VIP Dolly MakeupTris VIP Dolly Makeup Flower Spring BallFlower Spring Ball Sery Actress Dolly MakeupSery Actress Dolly Makeup Exotic Princess MakeupExotic Princess Makeup Dotted Girl Halloween MakeupDotted Girl Halloween Makeup TrollFace Quest: Horror 3TrollFace Quest: Horror 3 Moon Clash HeroesMoon Clash Heroes Juicy RunJuicy Run (Touhou Unmei no Hoshi)(Touhou Unmei no Hoshi) Spirit SolsticeSpirit Solstice Tiny Platformer (TutorialExample Project)Tiny Platformer (TutorialExample Project) Teenage Mutant Ninja Turtles in Shredder's Prevenge APRIL UPDATETeenage Mutant Ninja Turtles in Shredder's Prevenge APRIL UPDATE Thopter EscapeThopter Escape Celeste Dark WorldCeleste Dark World bigmap editorbigmap editor To take root Among the StarsTo take root Among the Stars Isle Craft DemoIsle Craft Demo PorterPorter BathosBathos PICOZONE 17-games-in-1PICOZONE 17-games-in-1 Cursed FlailCursed Flail Getting Over It with Meep_MoopGetting Over It with Meep_Moop Toxic InvadersToxic Invaders Pico-8 TetrisPico-8 Tetris Passengers (LD33)Passengers (LD33) fallestefalleste The CarpathianThe Carpathian Wild Wild YardWild Wild Yard - BEATWISE TRIGGER -- BEATWISE TRIGGER - OutvainOutvain CALIGOCALIGO Pie Game An RPGPie Game An RPG Celeste 1.5Celeste 1.5 Get in Santa's Pants 1.3Get in Santa's Pants 1.3 1000 Meters to Shade1000 Meters to Shade Train JourneyTrain Journey HighSteelHighSteel Meowlionaire 1.4Meowlionaire 1.4 Derailed! - A co-op game about building tracks (Unrailed! demake)Derailed! - A co-op game about building tracks (Unrailed! demake) Momo's MomentumMomo's Momentum The HeavensThe Heavens Lil KingLil King The Violet Signal - A Boss Only SHMUPThe Violet Signal - A Boss Only SHMUP Get Me the Spell Outta Here!!Get Me the Spell Outta Here!! Unchecked-8 (platformer maze)Unchecked-8 (platformer maze) Raccoon BallRaccoon Ball BrawlBrawl Web Pilot - Tempest-inspired tube shooterWeb Pilot - Tempest-inspired tube shooter WoolCat 3DWoolCat 3D KemobombKemobomb ToboggobanToboggoban Dig Deeper - Global Game Jam '21Dig Deeper - Global Game Jam '21 Fiss the Elf's Puzzling Pin-UpsFiss the Elf's Puzzling Pin-Ups Lina Witches Of The MoonLina Witches Of The Moon Zelda fishing minigame remakeZelda fishing minigame remake SKELETHRONE CLASSICSKELETHRONE CLASSIC MoonraceMoonrace Quasar Kid 1.2Quasar Kid 1.2 FaultFault DEFENDER X - v1.1DEFENDER X - v1.1 tiny farm 2.0!!!!!!tiny farm 2.0!!!!!! Picoball - Football Manager DeckbuildingPicoball - Football Manager Deckbuilding Picotune - 64x64 music playerPicotune - 64x64 music player moleculesmolecules Boomby!Boomby! Station-8Station-8 The Zombie Apicolypse - LOWREZJAM 2021The Zombie Apicolypse - LOWREZJAM 2021 Celeste Classic collabCeleste Classic collab The FlightlessThe Flightless Better Off AloneBetter Off Alone POSEIDIOSPOSEIDIOS JetpicJetpic Space Tavern PokerSpace Tavern Poker Slay the DragonSlay the Dragon Dust DasherDust Dasher Isohopes - an 8 bit nuclear reactor simIsohopes - an 8 bit nuclear reactor sim FroggleoidFroggleoid Vortex InvaderVortex Invader Road StormRoad Storm Racerbeam - A demo for the Assembly 2002 Pico-8 CompoRacerbeam - A demo for the Assembly 2002 Pico-8 Compo KosmoDuck Now FinishedKosmoDuck Now Finished Pico TowerPico Tower PAC-MAN 3DPAC-MAN 3D PICO-8 0.1.11 ED BY TIC TAC TOADPICO-8 0.1.11 ED BY TIC TAC TOAD 3D Experiment3D Experiment Got-Ya!- A Pico-8 Gacha Game -- 56 cards new secretsGot-Ya!- A Pico-8 Gacha Game -- 56 cards new secrets String-Based Graphics Rendering SystemString-Based Graphics Rendering System
...
...
...

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: None (Free)

Close
Connection Error!

Please check your connection and try again.