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
Beat up Sonic (MY VERSION.) remix (RE-UPLOAD)
by Draven1205
beat up riggy
by sodamiles105yt
German Silly Sausage Extreme! (Based Off 1998 Bop It Extreme) remix remix-2
by Bopitman2
FNF Jeffy's Infinite Irida | Execretion test [UPDATE]
by Jayden40175
Power of 2 Number Evolution: 65536
by zinedine89
cube root numbers band 15 - 16 for sj
by infinityruan
scratch cat shooter game
by browat111
Kick the buddy no mercy 2011 : Scratch Edition!
by JudeZach2014
(REAL) Uncannyblocks Band Para Different (121-130)
by juanfrilla
Windows NT 4.0 Simulator
by win98scratch
The maze of doom
by Herobrine84726
"Oh, Mr.. Mayor, I'm making a list" (Stingy text to speech remix)
by P1zzaGob1in
Numberblocks Band Millionths 13
by HTPC19512
SDGsスクラッチver.素材配布(エンジン)
by itakun16
逃走中‼︎ ver 1.5
by kazukun1002
Beat Up Scratch Cat 4 hacked (RELOADED)
by Wheotley
RECROOM
by rthapa3409
[スクリプト演奏]ミックスナッツ/Official髭男dism
by amo0926
Alphabet Lore Remake (6.6/26) remix
by NatLovesLogos
Cut the rope v0.7 with menu music
by GoodPiggies2
PBS Kids Dot ID (1999-2013) In CoNfUsIoN
by scratchbaby2016
idk what have i maAAAAAAAAAAAAAAAAAAAAAAAAAAAAde remix remix
by gudfsijacxvuvjef
Minecraft Scratch Editon 3D v1.1.1b W.I.P
by codingmadness98
beat up rusty
by Tyler-Time