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
Every GD Difficulty To Ever Exist.
by Noob_Productions_123
Q*bert level editor
by BradyCupcake
Титры из Маша и Медведь. 21-24 (в 4 сериях)
by vol_wubbox12
that one unused omega flowey part slowed and echo
by IsaacMan2016
Official Colourblocks Band but navy and pink dress skittles
by wenda55019
My NEW Russian Alphabet Lore
by jackmonkey15
talking news marokids tvokids HD remix remix remix remix
by jacejim1809
BBC Cartoons Too Logo But With Nickelodeon Creatures
by siddharth1717
486
by maximumjax
Incredibox NF´s Mouth Assets
by NightyFrog
Click counter only goes to 999 before reset
by among_us2i666
wet owl splash remix
by FreggleFrog123
Angry Birds - A Platformer Hard Mode #games remix
by Sans8883
Paper Minecraft Updated [Textures]
by WildernessCoder
Smeshariki "The secret recipe of the Owl "EN
by PikacnuPika
Bonus Buttons Spiffy Exe Buttons Halloween Soul 396
by kari1213
グッバイ宣言 / Chinozo スクリプト演奏
by kakekoko
talking tom and ben news: edición pingu extendía
by Andreus_
Bonus Buttons Spiffy Exe Buttons Halloween Soul 545
by kari1213
AY in Free-For-All Elimination [ Remix 1 | 10 Characters ] remix
by filiponscratch635
Make your own BFDIA remix
by Braceletythesupport
Super-Sonic VS Metal Sonic REMAKE
by SONICCD5
Ukranian Alphabet Lore Interactive
by Justaprivate_account
Ґ︱Belarusian Ukrainian Alphabet Lore
by PrinceAzuka134