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
dog
by thekid
Take out your anger on my Halloween 2020 self-insert (for fun!) remix
by Cycloon16
Blue Mist Plus - All Jumpscare 30,000s remix remix copy remix remix remix
by Otermino12345
Boom Bang But Ill
by danilodanishere
Battle Against Devils 20,000s Season 2 Part 5
by Aaron_TheCreator
Dark huo fa's Mansion (a SMC Levels)
by mooncake2012
(DON'T REPORT) Evil Nano gives Nano a punishment day/GROUNDED in @PICARO660 style
by nanogetsungrounded16
たくさんのiPhoneを一気にロック解除するシーン
by mogpenguin
☁️ Among Us MODv1.0.4 オンライン モッド
by pc244
* Wisestar’s Lullaby * Chapter 55 *
by Animatic_Addict
E
by OanTheCreatorMaker
New Project Cover
by ogorodnikov_a
2 pong (V2.00)
by wade11
Elemental 3 Recreation
by summunkid
2D Minecraft [1.17 update]
by greatlakeacademy
Random Project Idea Generator
by ceebee
Neutron Incorporated Anti-Matter Research Laboratories
by -84624-
Griffpatch's Blue Line Filter
by griffpatch
hey astronaut! - dnb oc
by anna_tsubina
Synthesia piano visualizer v5.1 (+ MIDI importer)
by 52525rr
Black hole add round 4
by PocoyoAndScratch44
(Scrapped Remix) Car Anatomy 2 Vector W8 (1990)
by RA_ALT
Angry Birds Level Maker v5.0 remix
by DafFace254
Vyond Effects Kit 2015-2017 (EXTENDED ^2)
by lateone1