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
-

Hula Hoop's Revenge Season 2 Part 2
by Aaron_TheCreator
-

Dashbox V3: Press Start
by ilovecats1536
-

Make your own BFB / TPOT but with Lego, Tune and Waffle!
by TheSmallestIceCube
-

Coptic Alphabet Dance (cause why not) remix-2
by loksonliao
-

My Beat Up Template
by LGTheScratchfan2011
-

Endless Wordplay! remix
by User172835
-

Cursor test
by the_baldi-fan
-

Endless Music Maker V4 / Whole Notes
by XLoreLetter
-

MINTcat 4.4(continuation)- Rainworld game
by A-lox
-

Interactive Endless Letters (Lowercase With Extrs) remix-11
by AdamLuciano735
-

lava chicken speed up speed up speed up
by dash_king_57
-

crowd panic
by Noahlugato
-

warrior cat adopts
by My_Art_Studio
-

???? !!!! baldi humor
by Mistah153
-

Aqua Reef clicker V.1.0
by CookieHamster37
-

talking baby hippo original updated
by gerofernandez
-

Windows10 _High quality_
by mangagroup
-

Geometry Dash Hardest Level
by Trueffet
-

The Accurate BFB Intro Old assets
by NIGHTMARECUPHEAD4536
-

Classic sonic world v1 (sonic level creator)
by Kiom1197
-

Aiden's Math Lore | Square root
by BackpackAiden
-

numberock skip count by 5
by Waterparkgamer
-

A Very Productive Coffee Shop
by Mewser23
-

TALKING TOM AND BEN NEWS CHRISTMAS 2023 remix
by everton_trader