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

WGBH Kids/9 Story Entertainment/TVO Kids (2010-2011) remix

by henriLindo4

Project thumbnail
View Project

Uncannystart Band Remastered (1-10)

by bau2213

Project thumbnail
View Project

Sesame Street Ending But It's Animated Part 3

by PuchungoLopez

Project thumbnail
View Project

Beat Up 20TH CENTURY FOX Remastred remix

by andpsaid

Project thumbnail
View Project

Oobi escape the evil doll clip 5

by FriedaFan13

Project thumbnail
View Project

Paper Minecraft v11.3 (Minecraft 2D) PLUGGINS BROKEN! remix-5

by Brawlersurgeiscool

Project thumbnail
View Project

Numberblocks Intro But It's 2025 ,Learning blocks Theme Song

by nirvaan2016

Project thumbnail
View Project

Among Us | #All #Games remix

by monit7523032

Project thumbnail
View Project

try to Beat Up Masy... or not.

by BruceDee1

Project thumbnail
View Project

Super Pixel Aquarium remix

by zaid_salahuddin

Project thumbnail
View Project

20th Century Fox becomes 20th Century Studios

by carlosomari78

Project thumbnail
View Project

Snake (with Cloud Leaderboard)

by Nathan98765

Project thumbnail
View Project

BFB Mini Intro (TPOT Style)

by Red_Rain01

Project thumbnail
View Project

Abc Song for AaronLeABC123 And DFRstudio

by Angel45eci

Project thumbnail
View Project

[StoryShift] StoryShift Chara

by Breath_Of_Dust

Project thumbnail
View Project

Geometry Dash: Spam Test Series #1 (Wave)

by wallyt12

Project thumbnail
View Project

Spring - A scrolling Platformer #scrolling platformers

by hamzai20

Project thumbnail
View Project

FNF HD Test Dad

by spierdalajcwelu123

Project thumbnail
View Project

2022 New Year

by Evil_V

Project thumbnail
View Project

Windows 7 Virus 2 (Short) remix-2

by Famous_666

Project thumbnail
View Project

Create A Button To Beat Up X! [1]

by newmyles

Project thumbnail
View Project

HELP_tale OMEGA Flowey (EXTRA PARTS)

by OMEGABOY_224

Project thumbnail
View Project

SAVE CAT!!!

by THECRINGETOAD

Project thumbnail
View Project

The Black Hole (Add Round 8) remix-134 (1000 Projects!)

by earlham11