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

Endless Reader but i remade it because why not remix

by leiner77

Project thumbnail
View Project

[-Underswap: Distrust-] Sans

by ScratchGamesCreator-

Project thumbnail
View Project

Scratch Mod

by Techyjr

Project thumbnail
View Project

Make your own BFDIA

by Coincreature34

Project thumbnail
View Project

Klasky Csupo Nightmares Logo

by NFV2

Project thumbnail
View Project

AY In Who is the Impostor! Server 5 (22)

by AdewaleTheBest

Project thumbnail
View Project

Newton's orbital cannon gamified

by MalinC

Project thumbnail
View Project

Among Us | #All #Games remix

by monit7523032

Project thumbnail
View Project

AIRSHIP Among Us es

by J4K5E1

Project thumbnail
View Project

マイクラ 1.21.11 / Paper Minecraft 1.21.11 baldi basics

by ewesome123

Project thumbnail
View Project

Naruto

by Taddbeast

Project thumbnail
View Project

My Talking Tom 2 beats up CPHSP.EXE remix-2

by KlaskyCsupoRip

Project thumbnail
View Project

Super Angry Birds World 2: Red's Island

by RoyalCHARLIE

Project thumbnail
View Project

FNF Shaggy Full Week (Old)

by MoseCoder

Project thumbnail
View Project

スマホ対応!しょぼねこのテニス!

by bitamon

Project thumbnail
View Project

Make Your Own Hurricane Season v1.1.3 (2023 names) remix smaller icons, faster icons

by sebastianfon0829

Project thumbnail
View Project

Roblox DOORS: Scratch Edition

by TNKProgram

Project thumbnail
View Project

Five Nights at Endro's v1.1.1

by EnderGamer7777

Project thumbnail
View Project

アニメ FOURVERSE 第31話「難敵」

by kesikesi_gomugomu

Project thumbnail
View Project

Beat Up Pico 2 but all buttons!

by newmyles

Project thumbnail
View Project

☁ Fall Guys Online Battles REDUX by:@Voltfire1234

by voltfire1234

Project thumbnail
View Project

Beat up Nix remix remix remix remix remix remix remix remix remix remix remix remix remix rem… remix

by MarioLu13

Project thumbnail
View Project

My take of Danish Alphabet Lore

by NJsaurus

Project thumbnail
View Project

Super Mario Bros. Wonder Maker

by scratchy8_