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
Suzy Sheep says Yes Afghanistan/Grounded
by Prism8
II Your Way! V1.5 End of Everthing (Final Update)
by Germonia
Wolfenstein 3D
by tcottle
Well meet again Papa johns
by night_slayer_37
My Rants: Roku Kun The Vyonder
by AidenTV604
Undertale Yellow Flowey Fight (not going to be finished)
by Zvstheworld207YT
Beat Up Nibble Nom (Logo Quiz World & Logo Game Buttons) [2] remix
by Rockytucks123
Coptic Alphabet VERY VERY VERY VERY VERY BROKEN
by CopticFanClub
all my fellas | scratch cat
by FIXYFOX8
fellswap sans fight
by Rip_toppyJay
Beat up Elmo 2 (Jelly Dog)
by Fabiankosc
My New PFP
by EmojiLey1
Add a button to beat up Nano: The Collab [remix 46].
by school-account2
Fishing
by squig3
Bomberman v1.1
by zmjj
Super Fleetway Vs Exetior
by redbird5555555
[Sparta Remix] TTS 37th Custom Source Has A Sparta Remix Remade in Scratch
by agarraga
[Hard Mode] Murder Time Trio Phase 1
by SANS764
Beat up Two (TPOT) remix remix
by gavinandrei23
Ohio EAS Alarm Animated
by MIGHTYCOLINME
beat up Daniel (BFTS) (1)
by tatatino150
RALR Concept Previews - Eh Part 3 remix
by ZoobusChase
The worst clicker ever v1.26
by _the_weird_dude
BFB/TPOT Your Way!
by Num1KltFan