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
Dementbox v3: Nuts remix
by dumy_dumzos
Bunnyz_UwU's GIANT Beat up Template
by hyd3ns33k
[W.I.P] Microsoft Windows N.T v5.00 Beta 1; Evaluation Copy (1997) Simulator
by paplochicken
Beat Up Yvone
by VsFamily
Rainbow Friends fnf test
by afton908
sprunki banana porridge official + lily and more remix-2
by Sprunki125536
pvz remade
by sparkbit050
Legacy Sonic FNF test remix
by sonicfan98jax
The MouseHeadz Band 1 (June 2025 Edition)
by juanfrilla
NOGGIN x PBS KIDS (NPBS Kids)
by BradyCupcake
Sprunkiocs 2
by grimxace
Random Level Generator
by _-Second-_I-Test-I_
RAYMARK
by TeenSummit2006
Drop the Ball 2
by kevin_eleven_1234
It's A Box Of... // #animations
by MrAK2006
Yeardateblocks Band 86
by Joegaming511_YT
Emerald Pingu.EXE Buttons E
by DanielSapinho9IsBack
Luffy moves
by ZenitsuAgatsuma1
(Old Version) Barney Error Maker (Axel Edition)
by axelthegdkidl839
★ Scratchy's Adventure ★ #games #scratch #platformer #adventure #all
by Lucasliu9595
Slime Jump
by Technoman7
beat up tennis ball more stuff
by Lestat1025
Super Mario Mayhem Maker - Mario Maker Crossover
by mariofan235
beat up scratch cat extreme (2 done) remix
by everton_trader