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
Endless alphabet OC BURP
by splashyideas
KDSN (Original) Final Sign Off (2/11/20)
by IIAndSDFan2k7
Numberblocks Basics Sprite Pack All remix-4
by capatidesmond
Beat Up evilbross Reboot
by lukemanolopoulos8
sonic game over world
by player_ah
Beat Up Bonzi Buddy 2!
by Alfie_Ben16
BLOODSPLATTER Extreme Demon Geometry Dash 2.2
by wellgames789
The Crazy Colors Band! 2
by CleverHawk17
Sonic Movie Speed Draw
by -Rocket-
Beat Up Squidward 2018 but Mario is JOJO
by JustGold0130
Windows 10 Simulator
by william_animate
Endless monster tales: Alphabat
by williamsS565
talking ginger 2 meets talking tom 2 crossover
by talkingginger132
Flying Gorilla 3D
by Coltroc
Magic Tiles 3
by sapnap_iscool
VHS Sans Survival
by Tem2554
Really Fast 3D
by ChuckSploder
(REUPLOADED) Endless russian phonicthings band
by JaydenGamerzTube
Beat up Evil the Sackboy
by SpeedCat709Rises
busc deluxe 3 plans
by isaac-MCcreeper14
The Studio Doors Of Numbers 2! Part 1 (Remix 3 - 19 Doors)
by Batatapo89Rises
MMOGSE 2 but pizza tower
by spybaz
Fast face bum
by Heydenh01
No turbo needed remix (noteblock) Mario Multiverse title theme remix remix
by superkiki1008