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
-

2048 tiles negative levels 1-300
by francescocim
-

2020 Samsung Smart TV Template
by HondaAccordGuy07
-

ほとんどがチェストのPaper Minecraft v11.7 (Minecraft 2D) remix-4
by aki-123
-

Beat up Sonic (added some more) remix
by Lestat1025
-

Hey Duggee Audio Collection Thing
by Blueboy726
-

Beat Up Unknown Sprite! 3.3
by Natetheninja160
-

The Solar System for Beginners
by zindex15
-

bfb 11 but like. late bfdia..
by ReaperTime5
-

brick eating simulator
by TrEd5000
-

SarahJosh In VHS
by UandFionn2021
-

Numbericons 8001-9000 remix
by jayden2015paul
-

talking doki and peppa news v6 remix
by doddwell
-

Seadtime 36 Days Of Type
by AdnanHallak
-

JJK memes that genuinely SEND me
by SatoruGojosWifee
-

Numberblocks Maker!
by WONDERLAND37
-

iPad Kids For No Reason ft. @cookie_soldier #trending #fyp #Animations
by StickTheAnimator_
-

PlayWithYourFace
by mres
-

A nano gets grounded episode, but it’s pure laziness
by hot655
-

Windows 7 Virus 2 (Short) remix-2
by Famous_666
-

Random Key - A Dodge Game #Games#all
by GUNASWAMlNATAN
-

Numbericons 0-250
by vanhouchin
-

Pegi Buttons for Beat Up Games (Free to Use)
by ChermayeffTesting
-

Add yourself/Your OC singing Challeng-Fredd(Endo Mix)
by TheGamer123456789101
-

NEW Kick The Buddy: Scratch Edition! remake V.0.0.8
by Guest_Dennis