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

Billy Sandbox++ alpha remix

by JH7676

Project thumbnail
View Project

I wanna be the HB Trap2

by Hanabi_iw

Project thumbnail
View Project

Windows XP Crazy Error Maker

by Nakachi0917

Project thumbnail
View Project

PS2 yayy (update)

by Milanovv

Project thumbnail
View Project

マリオカートワールド レインボーロード MARIOKART WORLD RAINBOW ROAD

by mayato21

Project thumbnail
View Project

What if BFB never split? Part 2

by samurillsm

Project thumbnail
View Project

Old Endless Alphabet Sounds remix

by Gaminggames2040

Project thumbnail
View Project

so I wrote a song...

by Lilydoesart_frfr

Project thumbnail
View Project

Beat Up Talking Pierre Free remix remix

by doddwell

Project thumbnail
View Project

Beat Up Four By ME Liitleman4564t

by liitleman4564t

Project thumbnail
View Project

MarioWare V.0.2

by ItsAMariotime135

Project thumbnail
View Project

The Studio Door of Numbers X [ 59 Doors ]

by Twin138956Scratch

Project thumbnail
View Project

100% pen fidget spinner

by andy120210

Project thumbnail
View Project

PBS's Revenge: Beat Up Viacom!

by Willzerba

Project thumbnail
View Project

Beat up Angry Birds But I Changed it remix

by GDBam2311

Project thumbnail
View Project

にゃんこ大戦争Vr.8

by nyankodaisensouAHAHA

Project thumbnail
View Project

Puffy's 1: Puffy's Diner

by redwhitefox7

Project thumbnail
View Project

ほんとにあったウザい話〜デマ編〜

by itm__itm

Project thumbnail
View Project

[FIXED] Bully vs Quiet Kid vs Anime Kid // #All #Trending #Animations #Comparisons

by -SourToons-

Project thumbnail
View Project

beat up android weekly big edtion!!!!!

by Traw2016

Project thumbnail
View Project

Talking ABC Ukrainian Letter Vectors

by Rileyroo2011

Project thumbnail
View Project

TPOT ReAnimated Intro With old assets

by MeowMeow2500

Project thumbnail
View Project

Windows 8 Beta 1.0.2 remix

by DroneFlyer767

Project thumbnail
View Project

Beat Up Uncorrupted Plant DLC 3

by hyd3ns33k