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
Endless Russian
by nikolas07paiva
Dogepro Star Experience But... Good?
by rsLembo
Windows River
by ColorWindows
Incredibox - mikabox
by lilominecreafter
Make Your Own BFB-TPOT
by FanInanimateInsanity
Pacman
by Scratch_Gamer_Girl1
The Nick Jr. Cats Pack v2.2 (v2)
by elinery
I'm not tht innocent meme
by Chocolate_frenzy
cuphead vz zombies
by JaxT10
Team Tutorials Infection AU C2
by jakluna
Numbers Band 13
by 2028The63New
Intromission (AI Music comtemplator)
by Bloky_Moon
Eurorave Delirium MIDI [HOME's MIDI player @0.4.2]
by aoi_2
the mine song but its text to mp3
by Antcruz
Sand and Water v3.3
by griffpatch
Super Mario Bros. 3 Soundboard
by sapientae
Fidget Spinner Pro 2 - REMIX to save progress! remix
by edenj97
Beat Up Scratch Cat! (Added finsh him) remix remix
by MyCottage
(DEMO) Super Smash Bros: Distorted Fantasy v1.2.0
by gabeknight999
1
by num31
The Battle Bees - Version 1.0.2
by sisayisback
Geometry Dash easy level
by gartenofbanana
Whole World Turns Into Blank Add Round 2
by Jmason2023
[VECTOR] Always Coca-Cola logo
by SuperPac13-