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
BFDIA: Your Way
by Agitated_Snowball
New Super Mario Bros. Versus (on Scratch)
by _DoesScratchApprove_
Pac-Man Bubble Trouble Classic (1993)
by jsa8122014
I SHOW SPEED
by teamwolfmc93
Beat up coolcat v.1.9
by guest62921channel
Amazing Paper Minecraft
by CypherCat53
Timeblocks Band 1
by testehf
Unpredictable Line Algorithm
by ImLucasIDK
Genesis Sonic 3 Engine
by Nano_on_Scratch
Meggie Warm Like Fire Licky
by Tomyamalety
BBC Logo Pack 2
by YoshiFan2021
SUPER MARIO MAKER ăźăăăȘăăź V8.4
by tomo119
Make your own TPOT remastered
by PinsNo_1Fan
CupHead: Wally Warbles (Remixed)
by 20105118
Super Pixel Aquarium golden
by politieagent2
Destroy the homework (OFFICIAL)| V 1.6.8 DRUGS
by DragonBorn101
Megapolis! || A multiplayer platformer #games #all #art #music
by Alolex1
Bongo Translate
by iconicGaming
Advanced Shooter Mechanics
by timo1os
Please help
by ayaadh
Cell Machine Mystic Mod
by PPBsc
Minecraft 0.9.5
by P-P-C
Geometry Dash v16.3
by bslater111
Round 423
by buygygyuguy