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
Central Test (Bambi Marathon)
by GUUiLBackup
Make Your Own BFDI/BFDIA/BFB/TPOT Version 2.0 remix
by Wilsstef017
talking tom and ben news 7_ edición extendida remix remix
by jackthemeepyboi
Beat Up Spiffy Pictures Mod Ver2
by KlaskyCuspo_123
Incredibox Sprunki (New Revamped)(Scratch Port)
by No_Scope_Pro_Alt
sprunki oc 111
by TheSwap_Tale
Pokemon Battle Test 2: Clash of Legends!
by J42
(MY 1300TH PROJECT!) My 13th Fixed Alphabet Lore (NEW)
by le_bacteria_alt
Sonic rig
by Biggoober14
The Non-BFDIA Contestant TLC/LOL'ers (2010 Style)
by 10sethm
My Chaos Endless Notes
by minecrafter289
Make your very own Bfdi/Bfdie/Bfdi/BFB/TPOT
by MarkerFan230
Sonic 3 Doomsday Zone
by Zaneunderscoreuhh
Find the Circles (164)
by astrocreeper30
Batteryblocks Band: Rebooted 3
by BlueTheNumberblock
Moon Soccer
by mckelveyf
Foolzbrave Balloon Popping Adventure
by HeHe169
scratch PFA v1.5 [MIDI support]
by 52525rr
add a button to beat up four.exe!
by JonDoe128
☁️ Degrade / Cloud PVP ☁️
by NL3_Animations
⚡The Studio Doors of Numbers Part 8 (718 Doors)
by batatapo89
Playkids Band 296 (Remake)
by MateoLuci01
C alphbet lore
by elderkettle880
Incredibox "Rimmon" Michael
by mikey_mike