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

My whiz kid animations

by BGA9

Project thumbnail
View Project

F N A F SL remix

by WickedMaker1234

Project thumbnail
View Project

Add a button to beat up caillou with hair

by driggy0114

Project thumbnail
View Project

Bone Island Monster Tracks added flum ox and gnarls

by agent_8_VEEMO_yay

Project thumbnail
View Project

add a button to beat up jevin

by driggy0114

Project thumbnail
View Project

⚠️Scratch地震速報LIVE ScraQuake V β版

by scraearthquake0506

Project thumbnail
View Project

Secret exit remake [W.I.P]

by UsaHuman

Project thumbnail
View Project

BFB Randomizer remix

by BubbleG_n

Project thumbnail
View Project

kScratch-T99 Animations (MGM logo parody)

by kScratch-T99

Project thumbnail
View Project

ay black hole add round 10

by ogorodnikov_a

Project thumbnail
View Project

~Needohs and fidgets~ || #Games #Animation #Asmr

by Da_humano

Project thumbnail
View Project

Kirby Inhales My Own Followers

by Taseless_Tart

Project thumbnail
View Project

The Studio Doors of Numbers - Part 3 (211 Doors)

by TheNAF2001

Project thumbnail
View Project

Strategy games x2 hacked remix

by koukunn8

Project thumbnail
View Project

Name Letter Sprites - Alondra

by aa_londr_aa

Project thumbnail
View Project

All Sample Audio G Major Effects Part 12

by JARETurn

Project thumbnail
View Project

FNF ⇒Accelerant⇐ [HARD]

by shadowmask1234

Project thumbnail
View Project

マリオカートっぽい!?プラットフォーマー7!!

by sgihyt781

Project thumbnail
View Project

夜に駆ける/YOASOBI ピアノロール

by fireshukkun1214

Project thumbnail
View Project

beat up 2 (from number blocks) remix

by tatatino150

Project thumbnail
View Project

my best game

by aslan120122

Project thumbnail
View Project

Geometry dash full version (fixed gears & mulpan!!!) mobile freindly

by 8chok

Project thumbnail
View Project

Geometry Dash Spam Level

by KylKon15

Project thumbnail
View Project

2023 Jumpstart Band (Lowercase) [MOST VIEWED PROJECT ON THIS ACCOUNT] remix-2

by furrywolforcysn