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 Martcallj! V0.6 / 15 Buttons
by crazycrazybaby17
TWO METAL BALLS BFDI 0_o
by ijnjnfvinrijhrg123
Beat Up The Roblox Noob v.2 (Knuckles Button)
by PowerGames1337
The royal flush of purple
by Rangers2015isback
Monster Vehicles 9
by coopstar_white3
Incredibox - Sprunki Swap Retextured Babies
by Skyelar111913
100k(YouTube)
by its-me-cat
(LOUD) scratch 3.0 shorts: stubbed toe
by willcahu13
Pikmen bop it!
by BfdiMila
NBC Logo (New Year’s Eve Edition)
by ItsGreenFirey
Emoji Maker
by MadeByRap
bas36, 2
by crazymilkandres
BMSB
by TehsWorld
marble maze
by madprincess
死の踊りキャットの冒険
by daijikesi
3D Engine Wars Demo (3D engine 3)
by Vadik1
Geometry Dash Spider Challenge
by aeyden2000
Numberblocks Basics: The Ultimate Showdown remix
by caixaria1000
Candybots 123
by stang999
Boom Bam Bop
by BigBouncyBanana
Combat Game(under production)
by Janish7
a Moded wii menu ON YOUK
by wiiuteam
(REUPLOAD) Preview 2 Scratch Cat In Chorded
by bellaswan123450
Mongolian Alphabet Lore
by KhatounationsCreator