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

PS2 Simulator

by Gabi2012TheCreator

Project thumbnail
View Project

ROBLOX The Movie (2017 DVD UK)

by BattleForDreamAgain

Project thumbnail
View Project

Numbericons 1001-2000

by cree-numberblocks

Project thumbnail
View Project

Talking ben deluxe(remix)

by 5ADZACH

Project thumbnail
View Project

Number Counter

by aGenericC0der

Project thumbnail
View Project

ADD YOURSELF SINGING:

by Artem-2022

Project thumbnail
View Project

My Sprunki OC remix-3

by Sans_is_lazy

Project thumbnail
View Project

My version of Macedonian Alphabet Lore remix

by CathrineStar

Project thumbnail
View Project

Geometry Dash swing impossible

by geomatrydashfan55

Project thumbnail
View Project

Super Mario Bros. 'Unofficial PC Remake'! (READ DESC)

by myeongchan

Project thumbnail
View Project

Beat Up Scratch Cat With Alot Of Buttons remix remix

by MyCottage

Project thumbnail
View Project

NGG: Nano sends Nina to the bnd of doom logo

by Laserboi127

Project thumbnail
View Project

Glücksspiel_2 #☁️Cloud☁️Projekts☁️☁️Studio☁️

by YannmWin

Project thumbnail
View Project

ZXNM ULTRA

by toxicfire72

Project thumbnail
View Project

Rocket Santa

by ccallahantow

Project thumbnail
View Project

愛に出会い恋は続く 五等分の花嫁 声真似

by horaramanzyu-

Project thumbnail
View Project

Numberblocks Band Quarters All Stars: Episode 31-60's Here We Come!

by Numberblockfangirl6

Project thumbnail
View Project

Beat Up MrLucky, MrRich and MrDweller

by DaveAndBambi2022

Project thumbnail
View Project

OMORI x Undertale | Friends Battle

by TSKS1173067

Project thumbnail
View Project

Interactive Endless Letters (Uppercase) remix-2

by JaydenGamerzTube

Project thumbnail
View Project

Untitled - 0.786972

by super_mario_kun

Project thumbnail
View Project

talking tom and ben news v7 remix remix

by tomandbennews6

Project thumbnail
View Project

Coptic Alphabet Song but DESTROYED but goofy ahh

by NicolasRluz

Project thumbnail
View Project

Add A Button To Beat Up Giga (Collab) #3 remix

by Markdanieltan20