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
-

Beat Up Israel444!
by theIsrael444
-

Intro HexCipher Gaming
by HexCipherGaming
-

"CATCH ON FIRE" [Lr+swap] (Reupload)
by Stellify
-

Super Smash Bros Scratch - Falco Screen Ko (Brawl Voice)
by Falco-Lombardi-2009
-

What is this super smash bros brawl mod?
by Great_Western_Quack
-

Extended Undertale Text Engine
by lucario92704
-

Make Your Own BFDI/II Crossover Object Show!
by aestc04
-

talking doki and peppa news v7 2
by jayjay1i09
-

Oggy and the Cockroaches Font 2.0
by micah8100
-

JJK Final Fight
by Superdudethatscool15
-

Add yourself watching a movie!
by TheCoderPanda
-

FNF Keyboard 1.3 FANMADE
by CJVRhehe
-

AY at Quick Ink REDUX! [ Remix #5 | 26 Players ] remix
by Local_Megurine_Luka
-

Google Doodle Baseball
by skartiks
-

Filmer's 5th Numberblock Pack but…
by Real_Retr0180
-

3d engine v2
by Nandu_k
-

Скретчики. 2 серия.
by Dimdimich05
-

Breathing Simulator
by The_Updator_Extras
-

Argam Number Evolution [Start -> 0]
by StudioXInScratch
-

elmo world
by numberblockboy
-

Beat up Peppa Pig Update 1.1 remix remix remix copy
by hyd3ns33k
-

アニメ FOURVERSE 第39話「四散」
by kesikesi_gomugomu
-

roblox free draw is horrible...
by LeafstarWasTaken
-

markers beat up me (remix here)
by Minecraftboi504