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

dog

by thekid

Project thumbnail
View Project

Take out your anger on my Halloween 2020 self-insert (for fun!) remix

by Cycloon16

Project thumbnail
View Project

Blue Mist Plus - All Jumpscare 30,000s remix remix copy remix remix remix

by Otermino12345

Project thumbnail
View Project

Boom Bang But Ill

by danilodanishere

Project thumbnail
View Project

Battle Against Devils 20,000s Season 2 Part 5

by Aaron_TheCreator

Project thumbnail
View Project

Dark huo fa's Mansion (a SMC Levels)

by mooncake2012

Project thumbnail
View Project

(DON'T REPORT) Evil Nano gives Nano a punishment day/GROUNDED in @PICARO660 style

by nanogetsungrounded16

Project thumbnail
View Project

たくさんのiPhoneを一気にロック解除するシーン

by mogpenguin

Project thumbnail
View Project

☁️ Among Us MODv1.0.4 オンライン モッド

by pc244

Project thumbnail
View Project

* Wisestar’s Lullaby * Chapter 55 *

by Animatic_Addict

Project thumbnail
View Project

E

by OanTheCreatorMaker

Project thumbnail
View Project

New Project Cover

by ogorodnikov_a

Project thumbnail
View Project

2 pong (V2.00)

by wade11

Project thumbnail
View Project

Elemental 3 Recreation

by summunkid

Project thumbnail
View Project

2D Minecraft [1.17 update]

by greatlakeacademy

Project thumbnail
View Project

Random Project Idea Generator

by ceebee

Project thumbnail
View Project

Neutron Incorporated Anti-Matter Research Laboratories

by -84624-

Project thumbnail
View Project

Griffpatch's Blue Line Filter

by griffpatch

Project thumbnail
View Project

hey astronaut! - dnb oc

by anna_tsubina

Project thumbnail
View Project

Synthesia piano visualizer v5.1 (+ MIDI importer)

by 52525rr

Project thumbnail
View Project

Black hole add round 4

by PocoyoAndScratch44

Project thumbnail
View Project

(Scrapped Remix) Car Anatomy 2 Vector W8 (1990)

by RA_ALT

Project thumbnail
View Project

Angry Birds Level Maker v5.0 remix

by DafFace254

Project thumbnail
View Project

Vyond Effects Kit 2015-2017 (EXTENDED ^2)

by lateone1