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
(YTPMV) Windows BSOD Startup Sound Scan^2
by truthbaconALT
Geometry Dash Silent Clubstep noclip
by peregrinex3
Angry Birds game maker remix
by isacdaniel090909
Add A Button To Beat Up BBC Four
by GantaTheGamerFan2K9
Add Yourself Fighting in the Teamwork Trouble Fight Cloud (21)
by jillybean511
Ultra Numberblocks Night 2020 remix-3 remix
by leoprincipe04
Beat up YOSHI remix
by cpproject
Totk Type
by sangjjjjj
TSB-remix
by wellco973
Number Decimals Band EP. 0.5: Part 1
by joscratchpro
Everybody do the flop song! remix by Creeperjamer23 credit to frankiewhizz4
by Creeperjamer23
Beat Up Edward DLC added vade remix
by Macjun12
Beat Up Edward DLC added vade remix remix
by everton123E
The Studio Door of Numbers X (8 Doors)
by jacob630
dads
by mub17
FNF - (VsMatt Mod) Full Week With D F J K Controls!
by mushr0o0m
beat up scratch cat, ultimate edition remix
by CLAX1212
Beat Up 1990's BBC Ver 1.0
by TinyTruePop
CLONECRAFT 0.11 (Outdated)
by xxlscratch
Beat Up 2022 Disney Channel (Unfinished Project) remix
by newmyles
A983's black hole add round 1
by afrost7227gh
bop it refresh demo
by androidev2567
windows 11 simulator (Trash Bin +Roblox (its WIP))
by AdiAbd
Make your own BFGC!
by BlueWTFR