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

StickFight 1.7.2 [Cyber World]

by PiouRixx

Project thumbnail
View Project

Add a button to beat up James (2 Buttons Added)

by newmyles

Project thumbnail
View Project

3D Minecraft MOBILE!!!!!

by Kingofyetis

Project thumbnail
View Project

Blue Mist Plus 4,000 All Jumpscares (Deleted Lazy Numberblocks)

by Aaron_TheCreator

Project thumbnail
View Project

FNF Sonic exe UST/MOD (UPDATE: Breaking Point)

by ke0dev

Project thumbnail
View Project

NBB Quiz Game: All Jumpscares (Official)

by Jason3424Maker-Newer

Project thumbnail
View Project

Preschool Prep: Number Factory (NEW VOICE CLIPS) remix

by aayanshdas

Project thumbnail
View Project

Harbor Breeze Vector Elite Ceiling fan (Bowl Light Kit)

by SamsStuffAndMore

Project thumbnail
View Project

Download Game

by Superdumbgames

Project thumbnail
View Project

チョコクリッカー バレンタインスペシャル!

by Huhies

Project thumbnail
View Project

DUMB FRIDAY NIGHT FUNKIN- SENPAI (Normal)

by megaman9009

Project thumbnail
View Project

ACT 2 TEST++

by MasterL0

Project thumbnail
View Project

FNF: VS. Dave And Bambi Test: Bambi [Update]

by DominicRaul24-2

Project thumbnail
View Project

CALAMITY terraria and project arrhythmia

by ecode59

Project thumbnail
View Project

That one part in Scratch Dawn in a Nutshell

by Ye1110

Project thumbnail
View Project

AYS Plagiarize Classic

by BoyfriendFromFriday

Project thumbnail
View Project

Скретчики. Новенькие. 1 серия.

by _Dima05_

Project thumbnail
View Project

Endless alphabet B-3 - BELLOW remix

by numberswizard

Project thumbnail
View Project

Dusttale: Glacial Asperity - Icebound Ferocity

by monkey_noises09

Project thumbnail
View Project

Beat Up Lollipop VIII

by sumcaznis

Project thumbnail
View Project

Pegi Buttons for Beat Up Games (Free to Use)

by ChermayeffTesting

Project thumbnail
View Project

Paper Minecraft cursed

by zer0sane

Project thumbnail
View Project

Untitled Dice Game

by ducdat0507

Project thumbnail
View Project

My New Face Raider Model

by Elscapo