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

I Added Preview 2 X + super duper low pitched + Something + Super Duper High Pitched

by vtd78_second_account

Project thumbnail
View Project

Geometry Dash GRIEF

by altshiftw

Project thumbnail
View Project

Android 13 Incoming call

by VuQuocViet12

Project thumbnail
View Project

Raycaster E7 Assets

by scratcher743299

Project thumbnail
View Project

Beat Up Stepshape [21]

by newmyles

Project thumbnail
View Project

Oh my li'l baby boy || PANGO and Friends

by Casndra2012

Project thumbnail
View Project

☆ 1.5k+ art tutorial !!

by _Inkspot_

Project thumbnail
View Project

My KLasKY CSUPO (Late 2025) Is Turning Into The Real KLasKY CSUPO

by MMF75000_Scratch

Project thumbnail
View Project

The Studio Doors of Numbers I - Part II (187oors)

by bfdi041

Project thumbnail
View Project

ć°„ć‡»æšĄæ‹Ÿć™š

by xx090611

Project thumbnail
View Project

Random Tycoon Thing

by chick_animations

Project thumbnail
View Project

぀いに黒ćč•ćˆ€æ˜ŽïŒćŠ‡ć Žç‰ˆă€Œă‚”ăƒ•ă‚©ăƒŒă‚ŻïŒ†ăƒ ăƒ•ăƒ­ăƒłăźć†’é™șă€ăƒ‘ăƒŒăƒˆâ‘€ă€Œç«ăźç„žă€

by Sheeptch

Project thumbnail
View Project

VS. Greg Heffley (Wimpy Kid) FNF

by nguyen_gia_thanh

Project thumbnail
View Project

Harry Potter and the philosopher's stone video game

by 123goss

Project thumbnail
View Project

ADOFAI - Neo Cosmos T4 but there are no holds and there's only 2 balls remix

by IDKwat2put4a_name

Project thumbnail
View Project

ăƒ­ăƒœăƒƒăƒˆéŠƒæ’ƒæˆŠ ☁ (Online Platformer) (Some parts WIP)

by fymann_

Project thumbnail
View Project

Every Windows Setup Simulator

by jorgeAGomez

Project thumbnail
View Project

ABEPIC 2 - Early Access 0.4.5 (under maintenence)

by mariolover5678

Project thumbnail
View Project

ç Žæ»…ăźăƒŸă‚«ă‚Č 第äș”è©±ă€Œăƒ‡ă‚čăƒˆăƒ­ă‚€ă€

by zeronnekoo

Project thumbnail
View Project

beat up rocky 0.1

by hyd3ns33k

Project thumbnail
View Project

PBS Kids Dash Logo Bloopers

by scratchbaby2016

Project thumbnail
View Project

Angry birds level creator

by epic12121

Project thumbnail
View Project

Beat up f remix

by sgtshep161

Project thumbnail
View Project

did 756 (read inside sprite)

by -Matteo8-