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
-

1NCR3D!B0X - SPR@NG3L$.EXE
by TOAOMM
-

Seadtime Font V2.1
by crazymilkandres
-

Seadtype V11.4
by BonesonScratch
-

(ReedFailor’s) sprunki Fight Cloud green Screen remix remix
by EdJunior2
-

gd faces
by blueyandspotgod
-

Battle for a million intro template.
by xjplayz9
-

NINJA ADVENTURE RPG
by PUNK_SIBER
-

the not end credits :]
by XianXiaoXD
-

How 13 got uncanny
by steamboat-mouse
-

add_a_powerup_and_pass_it_on[1]
by ashowiscool
-

Agar.io Online v0.3
by Coltroc
-

Furry Boss Battle
by Kozsmik
-

Quantum Science Energy Research Facility
by qserfworks
-

Beat up kick the buddy 2
by MagzyBogues
-

フォロワー50人! Platformer プラットフォーマー
by harugogo25
-

Icicletale icerume fight! 【Undertale AU】 BGM変更版
by segawaaaaa
-

The Curry Sisters Eyes In The Dark
by Jb203782
-

Friday Night Funkin The Origami King (DEMO)
by timberchase
-

survivor.io
by rat-violi
-

The Alphabet Lore The Movie DVD Menu
by pook67
-

FUNNY TALKING BEN (i don’t think I’m done)
by Gamergodpro1720
-

Pororo Battle! MULTI-PLAYER
by SqurrielBlaze
-

Endless Songs: Hickory Dickory Dock
by Jmason2023
-

Beat Up me 3
by tnwlss1013