Realtime Affine Texture Mapping (WIP) copy
by DCPU-16
Description
UPDATE: Back-ported backface culling. (hohoho) The code includes lots of unrolled loops and duplicated code to save doing things twice or with excessive calculation, so the code is pretty messy. Since this is affine texture mapping, the texturing will look funky when used on perspective transforms (you can see this on the first Playstation). This is the simplest form of texture mapping though, so it makes sense to implement this first. As you can see, this is way too slow to be practical. The framerate could be increased a lot by doing backface culling, which I might copy over from my racetrack project. I'm going to try this on a more advanced model, but it'll probably be a a like render instead of realtime. Credit to Mojang for the grass block texture from Minecraft.
Instructions
Affine Texture Mapping in Scratch. Adjust the distance slider (closer is slower) and Poly Resolution slider. I use the same texture converter as with the Earth Shader: http://dl.dropbox.com/u/12239448/ScratchTexture/index.html Model of Link Imported: http://scratch.mit.edu/projects/10541079/
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
Interactive Aiden's Number Lore remix-2 remix remix
by ABC123Eminions
Alpha Puzzles (SMG4 x Undertale)
by 1602_Animations
Barney error maker (Barney Error 152)
by ArthurAMoraes
Black hole simulator remix
by 2024hello2024
2000 PROJECTS!!!!!! :D
by Anahita35
no,im not a human veta 0.1
by JosevPro
Five Nights at Bernard's With @Bernardk11 Collab (1)
by JayceonD2014
The Backrooms 3D
by amineeeeeeeeee
Angry Birds Level Designer: June 17th 2020 DEMO
by brownie220
IDFB/BFB Contestant Generator Game remix
by Numberbot10
Angry Birds Level Maker 5 (Updated triple)
by MarioCraft2020
Scratcharia v2.8.3 Modded v0.0.1
by tohohogisu
Pan Stan's Pizza Playplace Tycoon
by severeradiation
Help Mouse!! - 住民からネズミを助けるのだ!ver.1.2
by TH-Garikun-
beat up the ice climbers
by BASE098
IF MONEY COULD BUY TIME
by sharkfinsoup1001
acme logo with scratch cat
by Softmoth64
Beat up John ( JGW RESTORE )
by The_SMTPV_Maker_YT
talking tom and ben news with unback
by orcalane10
Bitmap PVZ Wild wip build
by MeIzAwezomeDede
Mgm
by Nokia_gurl
Jr. Pac-Man remix
by Elijah182016
Beat up me MOAR!
by tnwlss1013
Scratch Cats Band 122
by SC_scratcher