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
Adding Numbers | An Animation based on Animation vs Math remix
by Neptune2014
Deh's Revenge: Part 2 Original file
by Harrymationseta-y
δΈηη½ι»η΅±δΈη‘θ²ι£ε
by K_Yossi_2233
[Pre-Scratch 3.0] Numbericons 1-2700
by jayden2015paul
5NAF 3 (FNaF 3) remix
by Noob1059
Beat up DtLegendz (6)
by Tyler-Time
Everyone Is Angry Beat up L add Round 0
by oliveira_7g
Miner Cat 4 (Scratch version) ζ₯ζ¬θͺη
by haru3_14159265
PBS KIDS Scratch jr
by NumberblockFaner303
Solar Object band 7 (finale)
by UL36DBreboot
Demon Vortex(All Pen) remix
by hwaJackson
sprunki-abgerny-but-sprunki
by kittyORANGEmeow2
Gnarls but with the G-major effect.
by 30telfairc
SANS
by SPAREMYACCOUNT4
etch-a-sketch
by Aardvark
Sprout Follies (Beta)
by xxX_Gr33n256_HD_Xxx
The Studio Door of Numbers X (13 Doors)
by happytoucan5184
14 Klasky Csupo In HD
by KTMBross
THERE IS NO GAME! (part one)
by colinmacc
100% Pen Tower Defense - _THE-ONE-AND-ONLY_ Version
by _THE-ONE-AND-ONLY_
sonic 3 and knuckles complete
by fredbearivan
RALR cast Πͺ Clicker hero remix
by Poland7Boyko
RoadHouse! remix remix remix
by neremo953
Battle for Dream Island Again (Your Way)
by DatPoweringDude