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

talking tom and ben news 7: [edición] [extendida] remix remix remix-2 remix remix remix remix

by everton_trader

Project thumbnail
View Project

Титры из Машины сказки. 20

by vol_wubbox12

Project thumbnail
View Project

Beat Up Pencil 2 Ver2.2: LOBOTOMY UPDATE (OH YEAH!)

by KHOPERIATEDO

Project thumbnail
View Project

Incredibox-Sprunki [discontinued]:(

by TheDJC_geometry_dash

Project thumbnail
View Project

-<[{(Collabs)}]>- talking tom and ben news HD

by Sprunki_God

Project thumbnail
View Project

The Studio Doors of Numbers - Part 1.11

by Figoor

Project thumbnail
View Project

Evil Stephanie Cat swaps her report card with Daniel’s/GROUNDED (FIXED)

by ChaseJ15

Project thumbnail
View Project

(( | Insane Satanos Test. | ))

by Impostward_23

Project thumbnail
View Project

Among Us

by SweatyG23

Project thumbnail
View Project

Windows 8 build 8888 crazy error maker

by Areo7Royale

Project thumbnail
View Project

FNF: Rewrite Sonic Test: Trinity remix

by creeper123gamer

Project thumbnail
View Project

FNF: Racing

by BlueHedgehog16

Project thumbnail
View Project

Cut The Rope 2 (MD Bootleg) Game Over

by lau0029

Project thumbnail
View Project

Scratch Cat's Adventure! #all #all #games #games

by bigstunstar

Project thumbnail
View Project

スターシュートVS モモンガせいじん

by monnsutaaboru

Project thumbnail
View Project

Codebreakers Fully Immersed mod - SSS2

by JamesRayAwsome

Project thumbnail
View Project

Five Nights At Shorty's (Ver 1.1)

by Donut_Star

Project thumbnail
View Project

this is why you never drive with terrible dad

by hey5668872

Project thumbnail
View Project

Scrolling and Zooming engine

by vast_gamer

Project thumbnail
View Project

Numberblocks Band: Rebooted (OUTDATED)

by Blueswedy_Scratch

Project thumbnail
View Project

The joy of Creation [TJOC:R]

by ramen575

Project thumbnail
View Project

[Later] Chill Intro for harukun19!

by laggylaggy

Project thumbnail
View Project

(Outdated, Legacy) Vs Mouse 2.6 SuperDavi2-0 Edition

by superdavi2-0

Project thumbnail
View Project

Voiid Bf

by VoiidSides