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
-

Deltarune: Fight vs my character (Битва с моим персонажем)
by IvanSup
-

Beat Up Black hat! V0.8 / 22 Buttons remix remix
by bonzi346
-

Beat up Edward | Game/Interactive
by Wills123Fan
-

KineMaster Scary
by BarryTheTuffguy
-

Lyloo! (1)
by pmz34
-

Prototype Po & Friends End Credits Season 3
by Gummibar1212
-

Numbers 1 to 1 Quadrillion
by NEWCOMP
-

Windows 7 sim (1)
by m-m93
-

Talking Tom Cat (1.3)
by GrimCutter6
-

Russian Alphabet Lore - A
by Gobofan50
-

Among ushupu mode Jester MOd with new players
by pichupu1528
-

☁️ Among Us Scratch (Yoshi Mod) v1.00 (online)
by HyperSketchyStudios
-

LG
by EC77727
-

GENOCIDE Omega Flowey Animation copy remix
by Bart14PL
-

Beat Up Goomba 3.0 remix
by motoki
-

[3K VIEWS] Cave Explorer | Platformer
by HeJacky234
-

Mega Smesh Bros.
by JavierSoto1
-

Random Terrain Generator _ 0% Pen! v1.1
by formulacarbon
-

ダッシュ‼
by takumarion
-

Geometry dash ship
by maelspi
-

マイクラ奈落ダメージ+コマンド追加MOD
by soraem0n
-

九九暗記機 (掛け算の暗記機)多分完全版
by guha-yarareta
-

BFDI/BFDI(A)/IDFB/BFB/TPOT CONTESTANT GENERATOR
by sonicshavaiz
-

ตำนานอักษรไทยเกิดใหม่/Thai Alphabet Lore Reborn Intro (not canon) fixed again
by dkBay