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

pizza tower but ultra bad

by igorkot14

Project thumbnail
View Project

Talking Ben The Dog MORE

by nathygames9087

Project thumbnail
View Project

BEAT UP STARBURST And Amy Nozecua (1)

by newmyles

Project thumbnail
View Project

browser change time

by LiftFan1997

Project thumbnail
View Project

MYO: Disventure Camp Total Drama

by StylishOlivia

Project thumbnail
View Project

Super Mario 64 (with cheats)

by pkliewer

Project thumbnail
View Project

OSU

by 2p0h1u5c

Project thumbnail
View Project

Ohio Sound board

by ajbtech

Project thumbnail
View Project

Minecraft vs zombies 1.5 #all

by breidy66

Project thumbnail
View Project

[WIP] Ohio Boss 3D Engine v0.16.0

by mu_gua

Project thumbnail
View Project

Best beepbox song I made ^_^( part 2 )

by leoleow16

Project thumbnail
View Project

>>>>Dragon Runner<<<< MOBILE

by Im_Him00007

Project thumbnail
View Project

Add Yourself Singing: Terabrachical

by nhaxton19

Project thumbnail
View Project

ねこジャンプMAX -Mighty Cat Adventures-

by waremegane

Project thumbnail
View Project

Numberblocks Band Retro 121-130 (Band Version)

by Trioctoblock24

Project thumbnail
View Project

Matrix Code Rain

by papipupepappa

Project thumbnail
View Project

Ideas In June!

by 419ghLifts

Project thumbnail
View Project

γƒγ‚±γƒ’γƒ³ε€§ζˆ¦δΊ‰

by ydn0414

Project thumbnail
View Project

Armenian JumpStart Band (Band Version)

by AlfabetonsOfficial

Project thumbnail
View Project

Dateblocks Band 27 (Aidans Version) (WIDESCREEN UNTIL BAND 36) (FIXED)

by AidanScratchMaker

Project thumbnail
View Project

γŠγ«γ”γ£γ“~Nightmare 13th~η¬¬δΌζ‹Ύε£±θ©±γ€Œθ™Žθ¦–ηœˆγ€…γ€

by tyomuko22

Project thumbnail
View Project

Scratch Block Generator remix

by pyromoose

Project thumbnail
View Project

Beat Up Dirty P-Head

by Lalajo3232

Project thumbnail
View Project

Beat Up Kirby Complete

by Codeyoshi_6