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
geometry dash deadlocked hacked remix
by Deomonheart58
fish tank
by vie107110
Beat up nano V2 remix remix remix
by UnderratedMegaStar21
emoji cat oc redesign
by Custo1234
Numbers Band 1 [upcoming] remix
by majidsalisu
Scratch Multiplayer Platformer - (with griffpatch tutorials)
by trungdung156
Seadtype V27.6
by stevenrobloxisback
Car Anatomy² Mustang GT350 Tuned!
by FIBERCAR10900
Numberblocks Powers of 5 Band 1
by literallynothing3215
The Mine Song but i dont know what i did
by duncantem_returns
ADD YOURSELF ADDING YOURSELF TO THIS ADD YOURSELF PROJECT!!!!! (6)2
by mariobro57
ボールコロコロ‼
by dkassy
[UNDERTALE] Last Breath Simulator (Phase 3) hacked
by asaasaa
Gacha Dress Up - Alien Party!
by huagoose
iPhone 12 pro Max with iOS
by SpikeDolphinGaming
Mine! 2.1
by colinszhao
Cool project
by Handy2000
ポケモン氷鬼 オンライン Ver.1.1.0-beta1
by LWS0252
Sustainable City Builder
by ConConDev
fidget spinner
by donotforgetmycode
✦ AVOID
by -Grebe-
Beat up Scratch Cat: Deluxe 2 v1.9
by Super_Isaac_64
UPGRADES
by oilamans
Fish Tank 12
by jms107902