Realtime Affine Texture Mapping (WIP) copy
by DCPU-16
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
StickFight 1.7.2 [Cyber World]
by PiouRixx
Add a button to beat up James (2 Buttons Added)
by newmyles
3D Minecraft MOBILE!!!!!
by Kingofyetis
Blue Mist Plus 4,000 All Jumpscares (Deleted Lazy Numberblocks)
by Aaron_TheCreator
FNF Sonic exe UST/MOD (UPDATE: Breaking Point)
by ke0dev
NBB Quiz Game: All Jumpscares (Official)
by Jason3424Maker-Newer
Preschool Prep: Number Factory (NEW VOICE CLIPS) remix
by aayanshdas
Harbor Breeze Vector Elite Ceiling fan (Bowl Light Kit)
by SamsStuffAndMore
Download Game
by Superdumbgames
チョコクリッカー バレンタインスペシャル!
by Huhies
DUMB FRIDAY NIGHT FUNKIN- SENPAI (Normal)
by megaman9009
ACT 2 TEST++
by MasterL0
FNF: VS. Dave And Bambi Test: Bambi [Update]
by DominicRaul24-2
CALAMITY terraria and project arrhythmia
by ecode59
That one part in Scratch Dawn in a Nutshell
by Ye1110
AYS Plagiarize Classic
by BoyfriendFromFriday
Скретчики. Новенькие. 1 серия.
by _Dima05_
Endless alphabet B-3 - BELLOW remix
by numberswizard
Dusttale: Glacial Asperity - Icebound Ferocity
by monkey_noises09
Beat Up Lollipop VIII
by sumcaznis
Pegi Buttons for Beat Up Games (Free to Use)
by ChermayeffTesting
Paper Minecraft cursed
by zer0sane
Untitled Dice Game
by ducdat0507
My New Face Raider Model
by Elscapo