
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

among us stickman
by cwkrobert22174

Beat up Jack Truck in Mickey Mouse Costume SEASON 2 [1]
by carcthedodecahedron

barney gets in dead meat
by supermariojjk

MIDI Creator
by MCAnimator3D

FNF - (Vs Sonic.exe)
by Bradk2005

IITPP Scratch Edition
by corestartupfail

Geometry Dash Megalodon
by iPhone_ATT_TWC115

Super Mario Bros Wonder Scratch Edition
by BabyRumman

-<[{(Collabs)}]>- talking tom and ben news HD remix-7
by bonzi346

Beat Up Tim 4: The Big Beating
by DaBlueBird_123

Sonic 3d Blast Scratch Port Real??
by BunchaNobodies

完全日本語版×【軽量版】|Paper Minecraft 1.20 update!
by ZERO_5631

Talking tom and ben news HD remix remix-2 remix
by everton_trader

Beat Up Red
by Jeffreycool6000

Beat Up Lyloo (13)
by GooleSharty122

Beat up Bonzi Buddy Moooooooooooore! (for fun) All Buttons
by Jjaime0

beat up nixel
by hjjarrett

Numberblocks Band Retro 31-40
by Trioctoblock24

ブロリー討伐作戦!
by MS616

Reglitcher 3D
by ggenije

ゾンビ撃ち 1.57 zonbie shooting 1.57
by pi-manyarou02

OMNIBELIEF: FULL OST (SrConroy's Take) Phase 3.5 <unfinished>>
by srconroy

Beat Up X Button remix
by jayjayy1809

New interactive Spanish Alphabet Lore from wario100 if I made it
by rainbowdaniel