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
UncannyStart Band 161-164 (THE END OF UNCANNYSTART BAND!)
by skool_12
FAT!
by scratchkid086
Nickelodeon Creatures Text Engine 40.0
by luxd1812
The Powerpuff girls movie (2026) poster
by MaSonic12
Stick War Legacy easy
by BekketDreamhunter
Nickelodeon creatures all colours
by 29sea11
Average car guys’ chat
by logicbrojx
Gravity Raycasting (Black hole)
by Zerofile
hide and seek Online 2 [#Games #All]
by maDU59_
Beat Up WeDo
by liamdvd
Super Mario (Scratch) 3
by jkidj
All Blue Mist #39
by TheGamerAndy_16020
昆虫大戦争/Insect battle
by chachamarutuyosi
Highway runner - 2D car game
by mangagroup
Beat Up Buddy
by tdcoding12
Beat Up Four
by newmyles
Conway's Life NO Clones
by TurboWarpDango
Talking Pierre the Parrot
by andbaq500
Interactive Spanish Alphabet Lore But Band
by Maddielvr
Beat Up Little Timmy (doge edition) v1.0
by igloohampster8
pizza tower (LAP 4) Peppina Mod V2.0
by MichaelLOLLY
Interactive Lego Pieces PART 2! V4 remix
by 347225
Uncanny Endless Numbers Band (1-10)
by supercallum18
Make your own Inanimate Insanity! HD
by rubypresents