Realtime Affine Texture Mapping (WIP) copy

Realtime Affine Texture Mapping (WIP) copy

by DCPU-16

👁 6,256 ❤️ 239 ⭐ 190 🔄 4
Created: May 30, 2013 Last modified: Jul 23, 2013 Shared: May 30, 2013

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

Project thumbnail
View Project

Real Time Clock

by crisgamr562

Project thumbnail
View Project

Schindler 5500 MRL HKtito Spanish Alphabet Lore At My Hotel

by F846playzV2

Project thumbnail
View Project

pen - v1.0 0801

by kasasa01_2009sugu

Project thumbnail
View Project

Beat up Edward [More Buttons] V2.3.1

by cgsd4545

Project thumbnail
View Project

sonic 3 end credits

by Jackal_75

Project thumbnail
View Project

error 404 sans戦 phase2 (my version)

by undertale_fan0_0

Project thumbnail
View Project

Beat Up Scratch Cat

by Blud-OPBR

Project thumbnail
View Project

Green Hill Zone (1998 Mix) - Sonic the Hedgehog

by cs4200621

Project thumbnail
View Project

Tetris

by Wes64

Project thumbnail
View Project

(Simulation) (-2F, -1F, 420m, 460m) Lift 4 at Tom & Ben News Tower 5 Tower Remix (-2F-460m) remix

by Tuud

Project thumbnail
View Project

angry birds 4k full hd

by aperson2460

Project thumbnail
View Project

太鼓の達人 ニジイロ 2000シリーズ+α

by mizunoY

Project thumbnail
View Project

Windows Vista Emulator v1

by AayanScratch7000

Project thumbnail
View Project

Yin Yang Yo - Chung Pow Kitties Sprites

by SticksTheBadgerXP72

Project thumbnail
View Project

CANNOT BEAT UP GIGA WITH CLONE SPINING

by weskone

Project thumbnail
View Project

Beat up Nano PLuS! (3)

by dirtotheobjectrises

Project thumbnail
View Project

【東方コラボ改変PV】春嵐

by sckoko8

Project thumbnail
View Project

SCRATCH CAT 3D

by grupogarzon

Project thumbnail
View Project

FNF Keyboard But with custom characters every song

by Corminator123

Project thumbnail
View Project

Mario and friends walking

by Funes0116

Project thumbnail
View Project

Scratch lookup 1.5 | the ultimate stats viewer

by kokofixcomputers_sa

Project thumbnail
View Project

30 minute Timer

by SublightUp25

Project thumbnail
View Project

talking tom and ben news V2: edición ALL AND THE NEWS remix

by everton_trader

Project thumbnail
View Project

BFB Intro Vector! (but some people is in it)

by FourtheAnimatior