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
Beat Up ImgBrun 2
by coopstar_white3
Secret Staycation Run
by supereagle153
New Sinner edition
by alvinoknbsd
Mario Drawing song from game and watch
by chaztheboi1234
Numberblocks Intro but battery got -1%
by nirvaan2016
SPRUNKI OC: Aelene but Sprunki.MSI (DONT REPORT)
by Mq1349
Beat Up Super Why, But Moving Into Beat Up Best & Bester Soon...! remix
by matheusmaccamargo
Kiff Dash
by poppy849
BFDI 17 But Modern TPOT but i made it more accurate
by OwlCuteness
Everybody Do The Flop
by 321_chicken
Escape hand spinner version
by ikea32
Alphabetons Intro (My Version)
by StormScratchUser
beat up the scratch cat
by MarioXHK
xu!underfell extreme mode
by xXUndertale51Xx
KyleWare: Ultimate Microgames! (v1.9)
by ABetterMe
音ブロックで『megalovania』
by kapotan912
Scratch Libs 4
by Will_Wam
SSS - VS ScratchX.rar 1.2 X Project Archives
by PeashooterWaffles24
Cat plays rush e
by Dresdenr
Custom RALR Cast Fanmade but all letters (NEW UPDATE!)
by Codybob1212
Jemel's JumpStart Numbers Band [Individuals / 2024 Version] Part 1 | Numbers 1 ~ 20
by jemellyles03
Added Franklin, Ben & Holly and Lalaloopsy remix remix
by ZoeBuchansky
Beat up Nano 3.1 (add a button) [5] remix
by 1superscratchcat
Preview 2 Scratch Cat in Pitch Black + G Major 4
by Little_Cat2014