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
Make your own BFDIA v2 but my faces
by mememenerd345
Beat up Klaskychoopo64 (me) remix
by Lestat1025
F N A F 2
by DP5gaming
Talking Knife and Fan News 2
by JacksonStormNew
(REUPLOADED) MORE BEES!!!!!! (Remastered)
by zyron74
All effects all once
by User-6tEk
disco snail animation
by dragon_acorn
Nissan GTR R35 2012 speedometer remix-7 remix
by NissanGtrR34-R35
me at fox photo shoot
by selenagomezreal
beat up the scratch cat remix remix remix remix remix remix remix remix remix remix
by MyCottage
Among Us! (new version)
by bezu16
Paper Minecraft building game- ItzzDarius
by ItzzDarius
Super Sonic Maker
by SUPERLUIGI1010
新着 ★ Ꮆ尺闩ᐯ工ㄒㄚ乙㠪尺龱 ▲ OFFICIAL AMV
by Natures_love
DinoWorld V1
by -yeldarbnivot-
Beat Up 1 The Noom [3]
by christywifi
Beat Up Baby Shark remix
by CLAX1212
Moonshine Mob Test
by kidnix
Mini-Python - Run python 3 commands in scratch
by minetester
all Talking Tom And Ben News HD V4
by mateothebb
リメイク版忍日本戦記 第一章 甲賀争乱編
by nagi_m
Low Battery VTech, Duracell Canadian Batteries Come
by Blueboy726
Hill Climb Racing Multiplayer
by Cadjavica
地震シミュレーション ver3.1+Remix(Ver.0.2)
by Madopro-1488