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
-

All Numbericons 1-740
by Nataliehouchin
-

dj kitty tries windows 8 with dj kitty helper
by djwolf35
-

-= A N O M A L I E S =-
by Giofelek
-

PVZW Mod - Custom Plants & Zombies remix-2
by Starwars_fan_25
-

Thomas and Friends DVD Menu
by Tommyarmy
-

Mickey Mouse Clubhouse Adventure!
by CheeseMan_31
-

Oggy and the Cockroaches Font 0.0
by RocketRonski
-

The Studio Doors of Numbers (102)
by superscratcher1232
-

Bang! Bang! Bang!
by IoveyaII
-

Square Sling
by Omar926
-

AY in the Moving Mine Redux! Ohio Takeover
by leoprincipe04
-

Brawl Stars V2.2.0
by Brawl_StreaaaakYT
-

Sonic The Hedgehog Big Remake
by SEGAofScratch3
-

Broma telefonica
by a3e
-

pet ellie rose (henry stickmin)
by johnnytest67
-

macOS Crazy error maker
by 801725531W
-

♫ピアノロール作ってみた ヴァンパイア スクリプト演奏
by zgmf-x-20a_sub
-

Cube Dash! #games #all
by RayBones1
-

Edit/add a button to beat up tera remix remix
by hyd3ns33k
-

beat up zynx v4.5 REUPLOAD!
by paataflamez
-

F N A F World fight4 remix
by 17aivancenko
-

My Kyrgyz Alphabet Lore
by jkhokhar-tcss
-

高菜鉄道100系運転シミュレーターモバイル対応
by sts529000
-

talking tom and ben news 2 v2.6 (MOST VIEWED) remix
by jayjayy1809