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
JumpStart Number Band 101-110 (Read Desc) V2
by cgsd4545
Windows 8 Crazy Error with Latvian
by nihaelmannukadan34
***the best star star clicker in the world***
by krub10
talking tom and ben news remix-2
by bonzi346
Second Update of Mickey Mouse Vector Collection
by Magician_Mickey
Seadtype V7.6
by crazymilkandres
The scratch 3.0 Show Shorts Painful Toe remix
by kwill945tutorials-3
Numberblocks Times Table Grid Updated (help)
by Goodall8434
Seadtype V12.9
by BBTLEOfficialScratch
γγ³γγ₯ε₯½γζθ¬γη«ε±±γε΄η«γγγγ²γΌγ γζ‘ζ£εΈζγ
by _-marucchi-_
Sprunki Parodybox CITY port #all #games
by leezep
jump rope squidgame
by -B4rr3tt_Animations-
JKMP inc.70th Anniversary logo (2002)
by TheScratchBross
Windows Vista v0.0.1 Beta
by snowball1359
Please Disney, Don't turn me into a Pop It
by Gamer-edit
All Blue Mist #41
by TheGamerAndy_16020
Circle Simulator. V1.3.7
by Badman1254
Spiffy pictures EXE Buttons(Part1) remix remix
by mutaz333
3D raycasted minecraft 1.2.6
by AntoineTelgruc2
MonthBlocks Band Version (Added Undecember)
by AlexTheCreationer
Pendulum Wave remix
by 31000000
WGBH Kids Logo (2008-2013)
by gamerboy1228
Tom and Ben News Returns beta 2.0 remix
by nathygames9087
Endless alphabet C-5 - CONTRAPTION remix
by jinhuy