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 Gilbert Parada

by Tcords2014

Project thumbnail
View Project

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

by Otermino12345

Project thumbnail
View Project

Pango hates Thomas And Friends Reboot (All Engines Go)

by Casndra2012

Project thumbnail
View Project

A Oh My God Bueno

by Dennisminecraft2025

Project thumbnail
View Project

Mario kart world! (took me 3 months)

by thetig4

Project thumbnail
View Project

Undertale Yazısı Türkçe Kaynak

by BURMETGT

Project thumbnail
View Project

The Greatest Showman Songs

by candyqueen24

Project thumbnail
View Project

Super Pixel Aquarium remix

by KnightRoland

Project thumbnail
View Project

MINECRAFT MOB ARENA GAME

by RPGGrandEmperor

Project thumbnail
View Project

Beat Up Baldi v2.786

by codingrocks9_55

Project thumbnail
View Project

sonic s:a sonic 4 like project

by naibr

Project thumbnail
View Project

Missile escapes on Scratch | #Games #All

by Moon-player

Project thumbnail
View Project

Minecraft Clicker 1 (v0.7.2) !!! Stop Update!!!

by huuphuc2008duahauvn

Project thumbnail
View Project

Massive Multiplayer Platformer v1.3

by griffpatch

Project thumbnail
View Project

Scratch Cat Platforming [mobile mode]

by sam_cs3

Project thumbnail
View Project

REVIRAVOLTA - Episódio #1

by Lala-Olivio

Project thumbnail
View Project

異子鳥GAME Mission:Save the Alien -フルop- 「Long shot」

by mikorin

Project thumbnail
View Project

Add Yourself Crying To A Sobble (3)

by DaveAndBambi2022

Project thumbnail
View Project

Minecraft jump rope

by dolpincat

Project thumbnail
View Project

【UTSA】Bad time trio!

by ---selen---

Project thumbnail
View Project

Windows Soundboard 2023

by LautaroElianEscudero

Project thumbnail
View Project

Angry Birds Friends Scratch Archive

by Awsome-Sauce-01

Project thumbnail
View Project

Beat Up Alpha Video V9

by redoudousweet2nd

Project thumbnail
View Project

[UPDATE] Beat Up Scratch Cat Full Version of Pencilmation Test UPDATE 1

by Dhyeguinho