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
-

AY black hole [1]
by numberblocksguy20
-

Hill Climb Racing mobile - 70 - Tesla Cyber Truck remix
by 5005256
-

Beat up Winnie The Mario Storyteller (READ DESCRIPTION.) remix
by Lestat1025
-

BREAKING NEWS: Beat Up Handy Manny has minimum visits and winning!
by liamdvd
-

Wheels On The Bus(CHANGEABLE CAMERA)
by aubai2016
-

F1 Racer
by spiderman807
-

Beat Up 1-Ball! [30]
by Delightful2025
-

How to make invisible blocks.---see inside
by absolutelymyrealname
-

Mario Galaxy Project v1.1
by The_Awsome_Sonic
-

Seadtype V26.3
by stevenrobloxisback
-

Cookie run kingdom:GACHA
by Mister_Kai
-

Credits 》FORSAKEN
by meomeovn214
-

Cloud Multiplayer Platformer
by XShrunk
-

バイバイン
by abee
-

Scratch 3.0 Show || Episode 1: Mayo || #animations #trending #all
by PhineasandFerb8
-

Add A Button To Beat Up Evil BBC One! (4)
by peggraz51
-

Beat up Edward Extreme (SUPER FIXED) Full Remix
by Coding_Resources_New
-

3D flight simulator HUD付き 垂直上昇 フラップ
by YYOOSSUUKKEE
-

The Black Hole (Add Round 1)
by kaa94
-

Bren319's Spanish Alphabet Lore but the word is Empresa
by SillygooseMike
-

Blue Mist Plus Part 13
by NewFeo123
-

Beat Up Objects (The Joy of Creation Story Mode Version)
by Bioshy_2012
-

☁Battle Arena Online☁ [マインクラフト バトルアリーナ!]
by hayatiburusu
-

★★ ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ • քǟʀȶ 8 • 820 ɖօօʀֆ ★★
by DatTrumpetGirl