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
-

color mix (a game) 1.2
by ngoinhala
-

Searopes [ A Fun Show Party ]
by sophiedx
-

Garden of banban 2(V 0.1)
by 2324kristophers
-

beat up bambi remix
by Draven1205
-

fnf || sonic || test remix
by Benork3
-

Uncanny Numberblocks Band (121-130)
by dylanmedia
-

Silent Clubstep [GD] (Original) remix
by yoplzno2
-

Five-Nights-At-Freddy's Ultimate Custom Night
by Aaban21k
-

Add Yourself watching a movie (2)
by AliroraTheProgrammer
-

Foxo Sings The Sprunki Song
by someone1572
-

Nickelodeon Ident: Wizard (EXTENDED VERSION)
by GUGADIAS
-

RTL SiKE Opening 2019-2020
by GauchitoTehScratcher
-

A Randomized PvZ 2 (v0.4.0 + Discontinued For While)
by DandysWorldTester
-

The mine song in minor
by -_rarehoola_-
-

mario party 7- windmillville theme
by sstrotmanefsd
-

Minecraft Bedwars v11
by BlackflameX
-

ghost forest 2 | #All #Games
by Moon-player
-

Gomintro - Crystal-25
by Ashibara_Art
-

platbox V1.3
by yusei0108
-

FNF Keyboard (Feat: Ruvaits)
by SticksTheBadgerXP72
-

Windows 7 Setup Simulator
by Mrk20200
-

The Lemonoid Invasion v5.922
by BlueBoi593
-

Symbol Lore All 1025 Character Season All 1-14
by GalaxyCakeStar10
-

Add your oc(s) to beat up cbp 3.0
by RedProfileyScratch