Realtime Affine Texture Mapping (WIP) copy

Realtime Affine Texture Mapping (WIP) copy

by DCPU-16

πŸ‘ 6,256 ❀️ 239 ⭐ 190 πŸ”„ 4
Created: May 30, 2013 Last modified: Jul 23, 2013 Shared: May 30, 2013

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

Project thumbnail
View Project

Endless alphabet A-1 - ALARM remix

by KLTWild

Project thumbnail
View Project

Scratch cat eats a lemon and dies

by Scratchrockin934

Project thumbnail
View Project

Beat Up Steve From Blues Clues! (1) remix

by everton_trader

Project thumbnail
View Project

Discover Card 2000 Countdown Remake

by Robmug940

Project thumbnail
View Project

amung us online!

by Smerich

Project thumbnail
View Project

The Wither Storm V31.2

by witherstormcool235

Project thumbnail
View Project

sprunki banana porridge official + lily and more remix-2

by Sprunki125536

Project thumbnail
View Project

Nickelodeon Creatures Text Engine 9.0 remix

by JAYDENTHEMAN123456

Project thumbnail
View Project

Numbers 0 to Absolute Infinity - [10^6 to 10^9] Part 2

by invitedleek2441

Project thumbnail
View Project

The Roaring Knight Attacks(Updated)

by Bacon-XD

Project thumbnail
View Project

(UNFINISHED) AY in Avoid the Spears Redux [ CS Takeover ] v1.2

by miguelhauck

Project thumbnail
View Project

Zanta Remade in Scratch but it's sprunki- Friday Night Funkin remix

by Guilhermepiggy999

Project thumbnail
View Project

Fidget Spinner remix

by JEA_530

Project thumbnail
View Project

Lazy Town - The Mine Song CG5 Remix [visualizer] remix

by 456344s

Project thumbnail
View Project

ALL XBOX STARTUP SCREENS

by HALO_MANIA2018

Project thumbnail
View Project

IDFB 2: I'm so happy to see you again

by jcuega

Project thumbnail
View Project

Numberblocks Intro But It’s 37000

by wadertaters5

Project thumbnail
View Project

Fruit Ninja First Version Scratched V2

by juliangamer555

Project thumbnail
View Project

NEW Super Mario Galaxy Demo In October 2021. remix

by loannlidon

Project thumbnail
View Project

Minec;'raft Corupption

by justxcat

Project thumbnail
View Project

Among Us FNF Assets V3 (OFFICIALLY RESTORED)

by BrainiacMonkey

Project thumbnail
View Project

The scratch 3.0 fan made show: the ball

by susibaka332

Project thumbnail
View Project

γ€γƒžγ‚€γ‚―γƒ©γ‚’γƒ‹γƒ‘γ€‘ζΏ€ηͺοΌγ‚°γƒ­γƒΌγƒγƒ«γƒ»γƒγƒ³γ‚ΏγƒΌοΌγ€ζ•΅γ‚’仲間にできるハードコを】

by Rozuki-masuhi

Project thumbnail
View Project

Talking ABC VHS Edition!

by thesecretsussy