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 Fake Klasky Csupo Nightmares Robot Logo (My New Version)

by yellowmariofan43

Project thumbnail
View Project

Beat up Yogi Bear! remix remix

by EmojiToonsTV1999

Project thumbnail
View Project

Endless Number Academy Test (DEMO) remix

by jade101717jade

Project thumbnail
View Project

Endless alphabet OC QUOTE

by splashyideas

Project thumbnail
View Project

beat up scratch cat

by bonzi346

Project thumbnail
View Project

Beat Up Tennis Ball 1.6 remix

by kubakoodziejczak

Project thumbnail
View Project

Decayed Reality On Scratch (Beta 2.0)!

by TazoLaTaza

Project thumbnail
View Project

Beat up Edward super

by candidoivad2025

Project thumbnail
View Project

Bop It Blast

by -matty1000-

Project thumbnail
View Project

Robot Numberblocks Band Quarters extended

by marcusxziel

Project thumbnail
View Project

Endless Russian Letters (baldi9845's take) italics

by Nachosun1403

Project thumbnail
View Project

Windows Clicker V1.1

by IITissues

Project thumbnail
View Project

THERE IS NO GAME! (part one)

by colinmacc

Project thumbnail
View Project

Falling Up The Stairs [ ENTRY ]       #games #all #art #music

by Yellow-Brain

Project thumbnail
View Project

Beat up 6 Characters

by anthonymuffin

Project thumbnail
View Project

turbowarp γƒͺンク ε€‰ζ›ζ©Ÿθƒ½

by yamato0915

Project thumbnail
View Project

Beat Up Controlly

by newmyles

Project thumbnail
View Project

Edit a button to beat up Shantae (2)

by tatatino150again

Project thumbnail
View Project

UncannyStart Band NVD 9

by tvokids4017

Project thumbnail
View Project

[Remake] Windows 10 Build 9841 Crazy Error Maker 3

by AndersandAngus2012

Project thumbnail
View Project

Bee Clicker

by kasukei

Project thumbnail
View Project

Beat Up Monkey Button 4

by JojosWorld32

Project thumbnail
View Project

ultimate color blocks band 100

by baolanvui

Project thumbnail
View Project

talking tom and ben news remix-3

by BRandong576