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
-

LOUD SOUNDS KEYBOARD (Remix 39/100)
by TedoandKeti
-

★ マイクラ1.21 / Paper Minecraft 1.21 Tricky Trials remix copy
by ericxia1413
-

[TSDoN-9 | 983] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑
by elliotthenice
-

New Super Mario Odyssey demo
by gamekitchen
-

Kellystone! End Credits (Season 1)
by WPFTWGoStrikesBack
-

Me and the letter D. (19)
by Connoralpha2012
-

Beat Up WORM SALLY [30] remix
by andpsaid
-

Random SP.EXE Buttons: Button T (FINAL BUTTON)
by Jason3424Maker-Newer
-

On the Brink of War 1933
by Cow-17289
-

Wither Storm Game Continuation
by Pikaninfa-Storm-New
-

Puffballs United/Superstar Entertainment/Teletoon/Dhx Media (2015) On Boomerang UK (2015)
by Elfol14
-

The Studio Door of Numbers X (16 Doors)
by _yuji
-

Phone Game Updated (21)
by JarL011207
-

Paper plane
by hiron0413
-

Not-so Hyperactive Atlantic Hurricane Season Simulator
by scratchmaster295
-

Fidget Spinner
by trashkids1
-

(Outdated) Dave & Bambi Mega Games
by BetterCharlieNetwork
-

Beat Up Pushin P [4]
by peggraz51
-

All Blue Mist #40
by TheGamerAndy_16020
-

cringe tower (pizza tower but bad) More codes
by cattosgoboom
-

UTMM Scratch Edition: Error's choice
by XxLogan170507xX
-

UNIVERSE Size Comparison
by AstroLemonoid
-

(ULTIMATE UPDATE) Beat Up Diego Leal
by CarlosTheBlackRabbit
-

Plants vs Zombies Paint Pack Scratch Remake - Wall-Nut Bowling #All #Trending #Games #PVZ #Bowling
by AsphaltRacer