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

AY In Water Rush Remix 14/23 Players

by roo543

Project thumbnail
View Project

My R.I.P Year Numbers For My Upcoming Series

by KidCoder32

Project thumbnail
View Project

Б My Russian Alphabet Lore but In scratch

by Pierrot2030

Project thumbnail
View Project

Underwater with the sea animals

by mkamsi

Project thumbnail
View Project

angry birds scratch editon

by scratch_cat_123576

Project thumbnail
View Project

Super Mario odyssey V2.0

by pokeslayer4

Project thumbnail
View Project

Infinty Knock Benja v1.85 FUNNY BOY

by benjaminsecondary24

Project thumbnail
View Project

Nick@Nite Creatures Interactive (Alternate)

by KyleHenry2009Rises

Project thumbnail
View Project

Заставка для БОДО БОРОДО - Страны (Бодо Страны)

by j7-_

Project thumbnail
View Project

gun game endless v1

by SUPERDUPERHUSHBRUSH2

Project thumbnail
View Project

AY in Birthday Blowout! [ Remix 20 | 58 Players ]

by Alphabe-Lore

Project thumbnail
View Project

Bike Simulator | Alpha V. 0.1.3 #All #all #games

by KoT_Haker777

Project thumbnail
View Project

カービィのBGMプレイヤー Kirby's BGM Player

by surumeika3

Project thumbnail
View Project

⭑ ★ ❶❷❸❹❺ | TᕼE ᔕTᑌᗪIO ᗪOOᖇᔕ Oᖴ ᑎᑌᗰᗷEᖇᔕ • ᑭᗩᖇT ❻ • 600 ᗪOOᖇᔕ | ❻❼❽❾❿ ★ ⭑

by OisinFan62

Project thumbnail
View Project

THX Parody (My Version) remix-3

by Izzalovesrainbows

Project thumbnail
View Project

|| Pの冒険/platformer 【拡散希望】

by YSTT491

Project thumbnail
View Project

Scratch Kart 9 Remastered v5.10

by Rabbidinho

Project thumbnail
View Project

Reprogrammed [Too Slow - B-Scratch Mix]

by bfad2435

Project thumbnail
View Project

Vyond Effects (Test #24) [Last]

by MonicaNunez50000

Project thumbnail
View Project

Frums - Jam with Pancake remix-4

by asakkeluhi

Project thumbnail
View Project

Filipino Alphabet Lore: C

by AlexTheCreationer

Project thumbnail
View Project

Furby hangout-2

by Akura2023

Project thumbnail
View Project

Every ALBTWIABCDEFGHIJKLMNOPQRSTUVWXYZIOF letter before Z rewound time...

by SillyGooseReturns

Project thumbnail
View Project

Vyond Effects Kit 2015-2017 (EXTENDED ^2) Added Even more

by lateone1