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
talking tom and ben news remix-2 remix
by everton_trader2
Windows 7 Error simulator X
by Nethereon
Beat up user!
by doggybellawoof
PlayStation 1 Namco Museum Vol. 1 - Pac-Man Sprites n' Sounds remix
by undertalefan2435
Juste Pour Rire Television (Ami Onuki Variant)
by Josue-Fanboy21
Bop it xt breaking
by jtpro817
Meggie Rosa remix
by ilove1234y
Beat up Boykisser (2)
by Traw2016
(x) GIVE ME EMOJIS TO DRAW
by cz43
a new sans fight
by Mister_peebody
FNF Sprunki (Test)
by Fnf_lover_101
Beat up Spiffy Pictures Re-Remastered Take 1
by Vovavovavovavovavova
page 1
by ant02126
Random CBBC Ident 1000m race!!!!!!!!!!!
by JffryDn9
Super Mario Bloopers 9 (part 1)
by logray
Your College Football
by jacklincoln
[unoffical] Undertale Neutral Run Sans Fight!
by Tota83
Windows XP Sim Added Clippy!
by Messyjacob27
γγγ€γ―γ©MODγγγγγ10ε
by horiyouta
Greek/Coptic Alphabet Lore [V2+]
by elithepidude
Rise Of Castlevania V.1.2
by Simloony
Beat Up Squidward (Add a button) [25]
by ElRey1200
[竢馬γ²γΌγ ]γ²γγγ§γ¬γΌγΉ V1.2.0γγΏγγͺγ§γγΌγγΌεηΎ
by DOIKKO
JUST CHOOSE THE SPAGHETTI SAUCE!!!! (The MouseHeadz)
by MaryannKitty11