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
-

New Super Mario Odyssey demo
by gamekitchen
-

(AY) The Approaching Black Hole add round 11
by Joining1231
-

2011 Могелевлифтмаш/МК-Лифт Lift VANDALISED remix
by Nacad25
-

Space Shooter
by KraftyMan12
-

Beat up Patrick Star remix
by jayjay1i09
-

talking tom and ben news REMASTERED
by AIDEN123333333
-

if Zvs was in: TBOI (anim version)
by Zvstheworld207YT
-

Windows 8.1
by hinata1020dayo4649
-

The Black Hole Add round 3
by ogorodnikov_a
-

fidget spinner collection
by KendrickUCNCH
-

Face Raiders REMAKE
by LVA0215
-

(SINGLE TUTBO) Big Turbo Hyundai Elantra N Speedometer remix
by ReginaldCooperbottom
-

GD World Dashlands
by chikomastr
-

Super Mario make From BenjaminWins11
by DogeBread_
-

レースゲーム ver1.0
by brasiltoshi
-

Minecraft Raytraced Alpha
by MyRaycasterArchives
-

Blocks v1.0
by neko3141592
-

Friday Night Funkin' VS Scratchy
by ZxverOwner
-

3D
by takenokodomo
-

88888 lol version J-L All 4 remix-2
by issy-shark
-

Find the BFB Characters (20)
by JustMinecraftJukebox
-

Crazy Taxi |SCRATCH|
by BanananaCheeseButter
-

⚡-Geometry Dash Wave-⚡
by Masteryko
-

I Wanna Test The Game remix
by bffromfnf1954