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 Doki, Guy And Girl II remix
by Draven1205
Add A Button To Beat Up Evil Windows 11 remix
by Rafanrafeek
SUBTERBALDI 2D In Scratch V1.0.1
by TotallyFake_GVERSE
windows vista build 2923
by SAD_EREN21
Add A Button To Beat Up Kick The Buddy! [0]
by juliescott12
scene 1 story board 3
by CircleBasic
Nickelodeon creatures: Russian letters that don't have sounds
by Mukhtar829
Color Rings
by Aardvark
Fidget Spinner Simulator 2.0 (V.04)
by BB_Productions
Fidget spinner
by davidwanqwerty
Basic English-Russian/Russian-English Translator
by RenacentACE743
雪合戦deバトル 改 V11 ハロウィン?
by 02515617
(PAGE 2!) Beat Up Squidward Half-Smash Bros Edition
by cs9999999999
Letter I
by vanhouchin
sky ボールころころ12
by skyblueball2
Beat up Edward 2
by Ziothedirector
Beat Up Letter C All Letters (Added K, M and J)
by CSJosue
「完成版」universe(3D&100%pen!)
by k0mune8
動くサムネ2
by GHKk_99
Zuma Deluxe Online (Scratch Edition) (Easter Edition)
by miltos6834
Sigma lift @ Tom & Ben News Residence v. 9.9.4.5 remix remix
by HKIBC
マイクラ1.20/ Paper Minecraft V1.20 remix
by shuumautsumi
The MouseHeadz (Reupload) remix remix
by flopneverstop
10 Days Left!
by Michaelblocks