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

The LMNOP Crew but they are all Equivalents of PQO227’s Hungarian K

by BryanTheAnimator

Project thumbnail
View Project

Pokemon Emerald remix

by XDinosaurkingx

Project thumbnail
View Project

help vectorize малышман тв russian alphabet remix

by Madrigal-Alphabet-Y

Project thumbnail
View Project

Beat up Nano+

by vincentherrera

Project thumbnail
View Project

Artistic Alphabet Unused 12.0 Beta Release

by SpideyBash4116

Project thumbnail
View Project

Crazy Gummy Ask and Jackson Ask News

by CanLoveToms

Project thumbnail
View Project

New Font Number Preset

by Nunosworld_Alt

Project thumbnail
View Project

I wanna test the game remix but better

by danny_cat77

Project thumbnail
View Project

talking tom and ben news REMASTERED

by AIDEN123333333

Project thumbnail
View Project

Henry Stickmin Collection (WIP)

by sososcary

Project thumbnail
View Project

ROBLOX Tower Defense 2

by robloxstudio6

Project thumbnail
View Project

add a button to beat up Mete From Niloya remix

by PlanetCocukYediYasve

Project thumbnail
View Project

art - try to forget her

by -Queenie-Bunny-

Project thumbnail
View Project

KyleWare: Ultimate Microgames 2!: Type Select Screen

by Kyle3912Again

Project thumbnail
View Project

Stepping on Legos #animation #memes

by NovarynAnimates

Project thumbnail
View Project

Sharkyshar V.S Griffpatch

by Lil_king89

Project thumbnail
View Project

Breathing Simulator

by The_Updator_Extras

Project thumbnail
View Project

3D Maze

by MemoVM9

Project thumbnail
View Project

Numberblocks Intro But It’s 2020

by poddy04

Project thumbnail
View Project

PaRappa The Rapper:Scratched (Official) [REUPLOAD]

by KING2447533

Project thumbnail
View Project

SPMY sans [Special Mysterious] UTSA

by ZERO722

Project thumbnail
View Project

Whole World Turns Into Blank Add Round 2

by Jmason2023

Project thumbnail
View Project

Minecraft, Xbox Edition

by whatsay429

Project thumbnail
View Project

fnati jumpscares v2

by oskargaming2022