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

Preview 2 Scratch Cat in G Major 31

by gamerboy1228

Project thumbnail
View Project

sonic legacy Lord X test but bad

by Benatus

Project thumbnail
View Project

times tables song generator

by MatematixAlt

Project thumbnail
View Project

(NO MORE UPDATES) Ryiscool0 Vs DonaldDucc: The Video Game V1.1.1

by Jillandjessebrake

Project thumbnail
View Project

How I/OliverNCompany37 would do a Portuguese Lore

by KontaireABCOffical

Project thumbnail
View Project

add round 1

by lexailya2024

Project thumbnail
View Project

Mini stormy tamagotchi 2.0 Jacob update

by Stormystupendos

Project thumbnail
View Project

Add yourself singing: Let There Be Light (Update!)

by reallygoodgamer140

Project thumbnail
View Project

Minecraft-ish MMO v1.7 remix

by MynameisPax

Project thumbnail
View Project

ONE NIGHT FUN BEAR WARNING THERE IS JUMPSCARES

by coolcat91247

Project thumbnail
View Project

UnderTale Last Breath My Remake 進捗1

by Tadano-Hito4

Project thumbnail
View Project

Seadtype V26.9

by BonesonScratch

Project thumbnail
View Project

Scratch in Scratch

by OnceUponATime199

Project thumbnail
View Project

calculator

by SiuMai

Project thumbnail
View Project

the (nearly) impossible lock

by theclanoffour

Project thumbnail
View Project

3D Platformer 100%PEN !!οΌˆγ‚Ήγƒžγƒ›ε―ΎεΏœοΌ‰γƒ’γƒγƒ’γƒγ‚Ήγƒ©γ‚€γƒ 

by nakakouTV

Project thumbnail
View Project

Friday Night Funkin vs zardy (Updated)

by djstorm420

Project thumbnail
View Project

Kuyenda (A Mouseheadz Music Video)

by DTLegendz-XD

Project thumbnail
View Project

Spiffy.EXE Buttons V10 RED ALERT BANNER!

by JojosWorld32

Project thumbnail
View Project

Sonic Movie 4 (2026) Trailer

by TailsTheFox5000

Project thumbnail
View Project

Beat up gobo (6)

by newmyles

Project thumbnail
View Project

Beat up scratch cat again

by paata27747438

Project thumbnail
View Project

Terraria: The Devourer of Gods

by secretman22

Project thumbnail
View Project

Yumi Gets Peppa Pig Cancelled/Grounded

by Joshua8381