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

Lomando Ghosts as IR entities: 404san

by uhhhhhr

Project thumbnail
View Project

Samsung Galaxy S2 Boot Animation

by 19BM345739

Project thumbnail
View Project

イニクロの直感アニメ #104 - 超アニ 4th anniversary

by 1296-cat

Project thumbnail
View Project

*BLOX FRUITS*

by TresureStudios

Project thumbnail
View Project

the flying game

by mars_2015

Project thumbnail
View Project

【 Scratch Chat 】

by AceBidace

Project thumbnail
View Project

ʜᴏᴘᴘᴇʀ / #games #trending #all

by wolfofprogramming

Project thumbnail
View Project

Numbers 1 to 1 Quadrillion reupload

by aWEWENTSTG

Project thumbnail
View Project

Nickelodeon Teen in July 15th, 2025:

by Joseph_Griffin_Rises

Project thumbnail
View Project

fixing

by polterpickle

Project thumbnail
View Project

Geometry Dash v2.2 Cycles

by CrystalKeeper7

Project thumbnail
View Project

Super Boom Boom World. For Scratch™ v1.2.5 #All #Games #Art

by king8766

Project thumbnail
View Project

♬♪ 音感 - Sense of pitch ♪♬ Ver 1.11

by sousou_1125

Project thumbnail
View Project

Beat up Nano PLuS!

by superizaaqgalaxy

Project thumbnail
View Project

Json三分ハッキング ① 好きな名前のブロックを作る #tutorial

by Es-2

Project thumbnail
View Project

(Sulfurous Seas + Epic Hunter TOWER) Tower Defense Simulator | A Scratch Tower Defense game v.3.3

by HollowKnightGames

Project thumbnail
View Project

beat up Chuck From Angry Birds (Added Three & Hellbreaker Expunged)

by Kaizo_Kolors3333

Project thumbnail
View Project

DOOM: Invasion Mode - Super Mario Bros.

by Monafide

Project thumbnail
View Project

【 マイクラMOD 】 青が最強

by horiyouta

Project thumbnail
View Project

んおののころころ

by nnonono

Project thumbnail
View Project

KyleWare TWISTED (v4.0)

by Agurijsj

Project thumbnail
View Project

Kazakh interactive

by firefox_snowfox

Project thumbnail
View Project

er eats a plus gem remix remix remix remix

by Loredo16

Project thumbnail
View Project

Beat up Edward DLC Remastered remix

by tnwlss1013