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

Talking Baby Hippo 1.6.6

by Maxi1303a

Project thumbnail
View Project

deck figures ep 3 personality society

by 6lebs

Project thumbnail
View Project

hickory dickory

by 29BWsenior25

Project thumbnail
View Project

Nickelodeon Creatures Text Engine 6.0 remix

by SebbieSebSeb

Project thumbnail
View Project

Pacman

by Scratch_Gamer_Girl1

Project thumbnail
View Project

koneaki3と対処法シリーズの小ネタ集

by taiyaki1010

Project thumbnail
View Project

colorblocks but in roblox (colorblocks rp) remix

by lord_gideon

Project thumbnail
View Project

Trinity Encore but Tsumugi Sings It

by GameCole123

Project thumbnail
View Project

Scratch Tidal Wave Fixed

by Mynameismilton

Project thumbnail
View Project

Columbia misbehaves at The Family Fun Center on HiT Cube's Birthday/GROUNDED!

by Minko1234

Project thumbnail
View Project

Angry Birds 2 1.6

by abc08957

Project thumbnail
View Project

Talking Tom and Ben News: hey duggee edition

by -fungaming879_

Project thumbnail
View Project

piano madness logo if it was on spotify

by sammygoodzombie

Project thumbnail
View Project

ROBERT-dragon

by TeenSummit2006

Project thumbnail
View Project

The Studio Doors of Numbers I - Part II (162 Doors)

by 100daysonly

Project thumbnail
View Project

Don't Get Zapped!

by PugNationsCoding

Project thumbnail
View Project

beat up scratch cat V1.6 remix

by Vad2014

Project thumbnail
View Project

Ball shoot ver1.0.0

by 123shun3

Project thumbnail
View Project

ローリングスカイ・9

by nihon2020

Project thumbnail
View Project

Beat up Edward [1] remix-2

by hyd3ns33k

Project thumbnail
View Project

Ultra Numberblocks Night 2020 Plus (Fan Made) (Radicaly Update) remix

by Dejvid2115

Project thumbnail
View Project

click the only button to beat up cat!

by tatatino150

Project thumbnail
View Project

Super Mario Bros 3 Scratch Edition remix

by stulive1004

Project thumbnail
View Project

Samsung galaxy S4 English (Android)

by realfardine