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
try to forget her (animation)
by Zacccatttaccc
Numbers Band 78
by PrincipeJosh
Endless numbers remix
by DoggyFrosty
Spiffy Pictures.exe Looks Comparison
by kuyanimaxwel
Beat up boa 2
by SamiSamantaG
Beat Up Redy super hard ( OG REMADE )
by Pearly_Gir1
Endless alphabet A-2 - I
by JaydenGamerzTube
Angry Birds Scratch by cs3019535
by Israel_oc
Thingbox Extras: Congle Eats Marshmallow Mateys
by mikey_mike
ƨllɒW bniʜɘઘ - ⸮v xodY
by PhilBru4
Add a button to beat up the Snowman! (5)
by tiziland009
Elementibox girls? what are you doing here? (FT. frostie sugarball)
by pink_fluffy_42
Slinging Ver 1.6 #games #trending #all
by Ahnaftheguy
BFB contestant generating game confusion
by FireyIsAmazing
Numberblocks Basics 6 Remastered Plus 2 remix
by ConstanSamuel
Numberblocks Band Quarters 19 Remastered
by Brycen123g
Friday Night Funkin' B3 Remixed | B3 Screamixed
by CharizardAaroshdude
83% pen piano roll Black midi nights of knights
by fireshukkun1214
Numberblocks Band Hundredths 40
by gabrielrfernandes
異子鳥GAME Mission:Save the Alien -フルop- 「Long shot」
by mikorin
McDonald's Logo
by jdnsp06
Penalty Shootout
by DisBlueCat
Alphabet Lore: M
by --RedAnimations--
放置ゲー×バトルゲー2"P"=超拡散希望=
by poooooooooonta