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 Edward 6! remix-2
by everton_trader
Beat Up X Button
by crazycrazybaby17
[TSDoN-9 | 1000] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑
by elliotthenice
geometry dash 1
by erdemboylu
Talking Gummy Ask and Jackson Ask News Fast
by CanLoveToms
(VIRAL) Interactive Endless Numbers
by BTM2913
My New Numberblocks Set (Gen-4)
by SlugUser55
Mega Black Hole Add Round 5
by llya2023
OSU!
by QuarterWhite
world of jumpscares (add more jumpscares) remix
by bonzi346
Sonic the Hedgehog remix
by Saramartim
Endless Alphabet Lowercase: Bus
by ngocha5g1
Beat up the guy 2 v.4
by harrypotter4528
[Deltarune] The Roaring Knight Fight
by Bad_Time_Trio1
Wee wook pew an hau we wew
by azoriad
NumberIcons! Episode c: Мультипликационные Орбы! But Translated To English And Fixed
by nelon1029
beat up book 1.2
by Kaizo_Kolors3333
Beat Up Dot Add Round 1
by cleverkids06
ONLINE広場4
by puru01010
AY black hole
by enzo2011uk
Plane Game v0.7
by asherpiazzola
Beat Up Pb@j Otter
by JonDoe128
★★❶❷❸ • тнє ѕтυ∂ισ ∂σσяѕ σƒ ηυмвєяѕ • ραят ❼ • 738 ∂σσяѕ • ❹❺❻★★
by KARises
(RARE) NBC Logo (1954-1956)
by Chugvolution