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
I got Endless Reader School Editon!
by Olihat
beat up scratch 2.0 remix
by Lestat1025
YOU CAN EAT IT!!!!!!!!!!!!!!!!!
by mr_chezinovich
Windows 11 project
by Maksimka123Lol
(AY) The Approaching Black Hole (16)
by lexailya2024
Numbers 1 to 1,000,000 with Beebzz Font
by IAMBACK__
【ファミコン風音楽】フューリーワールド「プロペラ砦」
by kenjirina95
We Become What We Behold But Better
by MasterMan2023
Pvz Clicker (Plants Vs Zombies) NEW UPDATE!
by emmetnn
Incredibox- CorruptBox but Sprunki oc real....
by TheNightz_
Minecraft-ish MMO RP SEVER
by TheRandomCatXD
House Numbers Font V17.5
by Steven_and_friends
Better Scratch (33+ NEW BLOCKS!)
by RAINETHEPRO5849
Answers to my Q&A||#all#animations#cool#trending#funny
by Craft_TV
PolyRhythm (Rhythm Game)
by DecaTen
GD | SPAM CHALLENGE
by DrizzlyRB
DaveAndBambi2022 Button [Beat Up Game]
by DaveAndBambi2022
3D Museum (3D Engine with Textures)
by BamBozzle
Beat Up Shiny The Sunny Bunny remix
by pocoyoKirk
spiffy pictures .EXE BUTTONS I
by nathankone
Scratch Paint Online! Infinite Players!
by bigbonesjones_tutor
POCOYO™ RACING | v0.3.6
by UltraProjectMaker
f n a f 2 + custom night ;)
by fortnitefan111
Preview 2 Scratch Cat in G Major 37
by gamerboy1228