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

Despicable Me 2 Title Card (New Variant)

by pihg003320

Project thumbnail
View Project

windows xp home edition

by Pulsarsoftware

Project thumbnail
View Project

Classic Numbericons 1-3500

by jayden2015paul

Project thumbnail
View Project

☘Spring! - A Platformer☘ #games #all

by _AurorazGames_

Project thumbnail
View Project

Seadtype V15.5

by BonesonScratch

Project thumbnail
View Project

Golden King Pig Animation Test

by RandomSuperMarioFan

Project thumbnail
View Project

Galaga

by Simoneek12

Project thumbnail
View Project

[GvNPP] Unit 1 RBMK Nuclear Fission Reactor

by gammaRaysDev

Project thumbnail
View Project

(comments closed!) Beat up simon from sprunki!

by Myownscratchuser31

Project thumbnail
View Project

AY in Roulette of Trapdoors! [ Remix 1 | 11 Players ]

by kydenj179

Project thumbnail
View Project

TVOkids logo bloopers take 11 FIGHT TIME

by Robofun220507

Project thumbnail
View Project

My Singing Schoolhouse (Point Plus) #02

by LDH110630

Project thumbnail
View Project

Beat up Pico!

by BLOCK_STRIKE

Project thumbnail
View Project

Four error 3.75:The longest Four error Part 1 ??

by Raph15Gamer

Project thumbnail
View Project

移動・回転が可能な3D

by vgnz93hs

Project thumbnail
View Project

ボールコロコロ‼

by dkassy

Project thumbnail
View Project

Apple Watch Demo

by alfiecat12

Project thumbnail
View Project

Kapi Test

by Ramirito2011

Project thumbnail
View Project

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

by YannmWin

Project thumbnail
View Project

Astro Quan Jia HD Logo Animation (TF! Edition)

by TF1AndAstro12123

Project thumbnail
View Project

Province Online 2.5

by Raccoon228_Test_2

Project thumbnail
View Project

Undertale aisu-teo fight! DEMO 制作中(Under production)

by aisu-teo

Project thumbnail
View Project

My talking scratch cat 2 best version, capped

by MicroCoderX99X

Project thumbnail
View Project

ABC Song

by BraxtonDill