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
The LMNOP crew as equivalent of Aircat’s Spanish Ñ
by decimalblocker
talking tom and ben news all buttons remix remix
by Dhyeguinho
Aircat's Spanish Alphabet Lore in Bren319's style (Read the instructions). remix
by bluey697
take care of your pet! #game
by ponygod
toriel ex fight
by icadbobo
beat up puck
by piolalina
Forsaken詰め 1
by GETUSEI
Ralr Kaboom! 1
by 2here
Interactive BANBAN Ragdoll
by 2110368
Number Decimals Band Episode 10: Part 1-2 remix-3
by pyonty
draw
by Jen150007
PBS Kids - Dot,Dee and Del (Vector Look)
by TheSpiderFoundation
Beat Up Evilbross 2
by BOOMBOT124
[REDUX] Add yourself running from the coronavirus!
by BATTLE_STUDIO
10 - Minute timer
by BBurgerMan
Beat Up Scratch Cat! (Added duck) remix remix remix remix remix
by Mathew5555555555555
Click-n'-drag[1]
by Paddle2SeeFixIt
Level EATEN! Multiplayer! - v0.12 - m0.1 remix
by FJT2015
talking tom and ben news But Its My Version
by Parker4real
Scratch lookup 1.5 | the ultimate stats viewer
by kokofixcomputers_sa
PvZ BETA v2.1 remix
by cpscratch15916
Dig Dug PUMPED UP EDITION
by Inky-The-Ghost
Magic Tiles 3
by sdhtrsa
beat up mario.exe!!! remix
by ES90O0fr