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
Numberblocks Intro but Everyone Turned into Jumpstart Letters
by SETHMCLEAN
bob's bad life
by arctrooper22
Beat up N Animate
by aktaev8aidar
Vmagnanic's New Cuphead engine
by Plantboi012
Numbericons 1-4300
by jayden2015paul
Incredibox Gruttlezum v5 X'zabox
by tboban
☁︎[モバイルOK] RED BALL 1 Scratch online edition☁︎
by androidprod
Random Pizza tower test#2
by MickeyMosue123542
Endless Numbers [69% off?]
by splashyideas
Geometry Dash Sonic Wave
by real-name1239
BLOX FRUITS (OP stats)
by Clarence_1100205
OM NOM PACK
by OmNomChohPan
37.2度杂货店说说唱唱学笔画学部首片尾
by YongJunChong2025
Federal Signal Smart Siren with Whelen Holwer
by LitesEM
Endless Reader [NEW] remix
by chaungoctai1208
All Numbericons 1-105 Different Styles remix remix
by vanhouchin
Numberblock Piratasthophe but it goes to 30 (2nd most popular project)
by NumberblocksFan08
Prime Catch [Mobile Friendly]
by Poteto143
ink sans phase 3
by lazyskeleton99
COLORS!
by Filmakers
Elemental Playground!
by Thebenjiball
1 To 999 Number generator
by 66GoodGames
Paper Minecraft
by AMA_madelyns
HPRC Simulator
by RandomScratch65