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
Cuphead Grim Matchstick Boss Fight -- Archive
by vmagnanicarchive
Super Mario on Scratch 5 The Day Before Xmas!! (MOD)
by YasuYasu64
Rewrite Sonic pack
by JSBharties
Pinky Dinky Doo says Caillou! But Instead of a tenor voice,it's Pinky's voice.
by Iggy2014
rewrite sonic test remix
by BlockmanGoStudio
FNF Sonic Legacy (Sonic 2012 Edition) remix with message
by autisticlizard12
very small art dump </3
by -Cascade_
Alphabet Lore but the word is Crocodile
by SillyGooseReturns
gd grief but accurate BUFFED #gd #trending #grief #gmd #buffed
by JayCreates5
Numbers Band 177
by SimonIs14
[WIP]UNDERTALE: The Hacker End [VHS! Sans Fight] By DeepVid
by DeepVid
青の塔49階
by sakaryuu
Appel Hacked v1.5
by stonewall123456
Scratch Valentines!
by 12dejamoo
Windows Retro OS
by -TheTrue1sHere-
Vac Man The Game!!
by baldiii
Turbowarp Wave
by reoreo333
Minecraft - Scratch Edition v1.01
by Scratch2Craft
Sonic Maker 2 - A Platformer Creator remix
by jn11001
The Alphabot And Violet Crying Because Velle Exe Bully Their Alphabot And Violet
by stang999
Beat Up Four 4 Deluxe Ultra Turbo Definitive Edition GOTY EDITION Director's Cut & Knuckles
by _mespritsinnoh_
Kit The Movie Dvd Menu
by KitTheMeowOnScratch
Super Sonic Maker remix
by Classictails1991
Numberblocks Band ReTrillion Remastered (100.0decimyrillion-1.0Micrillion)
by Numberblocksbandddd