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

Typing Endless Russian remix

by NumberjackFan2024

Project thumbnail
View Project

Beat Up max 0004 15.5 remix

by jacejimerson7

Project thumbnail
View Project

Jayden's Pocoyo Logo Bloopers 2: Take 5: A New Clapboard Guy!

by JDCommunity2024

Project thumbnail
View Project

Русский Буквария (My Whiz Kid Russian)

by mywhiz

Project thumbnail
View Project

SW Wither Storm Models remix

by withered199

Project thumbnail
View Project

【立体音響】北武鉄道 1000系 シミュレーター (国分寺~恋ヶ窪)

by hujikyuukou-8000

Project thumbnail
View Project

Sprunki Phase 17

by Billi-14

Project thumbnail
View Project

beat up wenda 10.0

by xmrrileyxx

Project thumbnail
View Project

GameToons Sprunki in OG style!

by RLppp645

Project thumbnail
View Project

NO

by RainlovickIncredibox

Project thumbnail
View Project

Part 113B - 21,000s Jumpscares

by Jharring2025_24

Project thumbnail
View Project

= MMGISS's SCRATCH SLOT = ver.β

by MMGISS

Project thumbnail
View Project

Intro Template

by Intro-outro-PERSON

Project thumbnail
View Project

Breaking Into The Vault

by TristanPhoenix

Project thumbnail
View Project

Windows 11 Crazy Error Maker remix

by lando0818

Project thumbnail
View Project

Add A Button To Beat Up Peppa [4]

by Rileyroo2011

Project thumbnail
View Project

Beat Up Book v2.3 remix

by JanKids

Project thumbnail
View Project

3D Pac-Man

by hiiiool

Project thumbnail
View Project

fish

by razrabino

Project thumbnail
View Project

超鬼畜弾幕60秒耐久ゲーム The LIMIT BLEAK

by ryopanda

Project thumbnail
View Project

Blue Mist Plus 90,000,000 All Jumpscares (Added My Other 3 Numberblocks)

by Aaron_TheCreator

Project thumbnail
View Project

Часы Cкретч 1 HD Вести 35 Лет

by TELEVIZORCHIK

Project thumbnail
View Project

ULTRA NUMBERBLOCKS PACK! remix

by DoodlandsAddedParts2

Project thumbnail
View Project

[fooled.] the full RALR cast! but all of the letters

by Laypyae