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
Wario Land 4 Alternative Title Screen remix
by sanedtheperson1203
five nights at endermans
by zzhhooookk
akasakura×ぬいチューバ―「オーバーライド」
by akasakura
Beat up the red cube guy! [3]
by Traw2016
Русский Буквария (My Whiz Kid Russian)
by mywhiz
Hickory Dickory Dock JRS 3D Dinosaur
by ALFIEW1252
Text Engine by @tofasci_mehmet
by ISMETKAANAYDIN
the scratch 2.0 show episode 3: rain
by Jruizm14
Mega Black Hole Add Round 13 remix
by jayden2015paul
Escape - Game
by Elite_Games
Windows 10 Simulator V2 remix
by misha3223
The Studio Door of Numbers X (37 Doors)
by sansrealgun
Miner Cat 4 (Scratch version)
by Coltroc
Boba Tea Pop it
by SunflowerQueen4646
Beat Up Blue Tubby #1! (Workings)
by bluescratchanimater
Crystal Seeker 3D platformer v1.7
by DinoTin
BATTLE ROYALE 4.7
by nguyenhm
NGG dvd
by gevsfsgf
All Marios And Luigis
by tatatino150
シムシティー 未来太陽系大航海時代DEMO1.0【アレンジ】
by ringedwood
Sonic Animation Test
by WE7A2023
My talking Angela 2 remix
by PlanetCocukYediYasve
Sonic The Hedgehog Level Maker
by pepinoe
Jolly Project : J-0114 Demoscares (My Take)
by Tigerjollyyt