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
Tap the frog 1.2.0 [RESHARED]
by BrianTiger6e40
Numberblock 1-6000
by jayden2015paul
่ถ ้ท็ทจใขใใกใใ#62ใใ็้ขใฎใใข
by SAS134
My 2026 OCS
by superjedd19
We become we || OC animation
by DucksterPeep
Nickelodeon Creatures Text Engine 6.0
by ChermayeffTesting
Xbox 360
by Pszemek8
Star Wars Minecraft
by coolmanfun
Wave spam by izzy
by fr0ggy_190
Super Smash Scratch X Roster 2.0 nkirby
by nkirby1
New Intro
by Nicklodeon19
Sonic Frontiers 2D V1.4.3
by phcarson
safe cloud chat
by increiblechicken
Safe Live Cloud Chat - Chat with Friends!
by Sonicplus
Magic Tiles 3 remix
by WWFan2
RPG - Griffpatch tutorial completed V.1
by Endless_C0des
Geometry Dash Funk Patrol
by iPhone_ATT_TWC115
Strawberry prince ARENA TOUR 2023 'Here We Go!!' LIVE OP Reproduction
by yoruumi
Beat up the Old Jaxon5 for revenge
by Jaxx51
AY in Conveyor Runners! [ Remix 5 | 16 Players ]
by EMM_Coding
Windows 95 Virus Simulator Beta Ver 1.2
by Real656
Beat up Edward 2 remix remix
by HarrisT2016
NBB Jumpscares Simulator (Version 0.9.5)
by MVVLE2021HD
THE FIRST SCRATCH PROJECT EVER
by Panda_Tacos