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
-

Rainbow Numbers 800001 to 1000000 Music
by matthewlin1013
-

地球守護者(打字練習)
by APaulliao
-

4 buttons that are deleted for violent remix
by xanderafa
-

Black Hole Simulator!
by GreenyTheRemixer
-

Aura RNG
by tkomps211071
-

20000s remix
by Jharring2025_24
-

Netflix (36/70)
by BronzeCubeonScratch
-

Beat Up 17
by ibbymalik
-

Super Mario 64 - Cool Cool Mountain
by FunnyAnimatorJimTV
-

Angry Birds Classic: Test Piggies v2.1.3 remix
by WINDOWSWINDOWS
-

西鉄3000形ドア開閉ゲーム in福岡
by Jaion-
-

【Minecraft】初実況 #1
by ns6335
-

Omg another Tail-Lek!?
by RedAnimations_
-

ScratchAnimate
by YooperStar37
-

2027-Present Mickey Mouse Meets 1939-Present Mickey Mouse
by YellowLeggs
-

WOW
by wicked_K
-

My Effects Kit
by BentleeFan77
-

Storm Simulator (1.3.2)
by EiramC
-

魔改造ポップコーンスマホ対応
by Taka0131
-

Numbers 1 to 500 In 500 Fonts (My Version) (Part 2)
by N0d0n1234
-

Scratch or Turbowarp? v0.1
by AmongUs9276
-

Beat Up Objects remix
by egwemma
-

Jumpstart Letters Typewriter + TTS
by Modnationfan2010
-

NAMCO MUSEUM remix
by pepperpep25