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

SMPS: Track Star (Mario Party DS) (Rivals Version)

by isaiahandrews07

Project thumbnail
View Project

Beat up Nano v.3.0

by jakubko2010

Project thumbnail
View Project

CLASSSIC PLATFORMER

by CYBER_2016

Project thumbnail
View Project

Numberblocks Band 131-140 (V2)

by benja_22A

Project thumbnail
View Project

Beat up Belle 1.4 remix

by WalFan13BoxinScratch

Project thumbnail
View Project

Hot Animation/HiT Entertainment (2007) remix remix

by jjones27026

Project thumbnail
View Project

Numbers 1 to 10000 with Xtra Font

by rizqiuwais

Project thumbnail
View Project

Secret Staycation Run

by supereagle153

Project thumbnail
View Project

My DVD collection so far

by KicketyTheKickBall

Project thumbnail
View Project

【創作譜面】クロートーと星の観測者

by -pte-

Project thumbnail
View Project

peak scratch 2.0 game

by gabriel_carmovip

Project thumbnail
View Project

5

by _birb-alertt_

Project thumbnail
View Project

Endless Music Maker - Twinkle Twinkle in A Major

by chrisdberry

Project thumbnail
View Project

Number decimals band episode 10: 3-4

by marques_k_provost

Project thumbnail
View Project

Hilbert curve 1920x1920 order 10

by M2KPRO

Project thumbnail
View Project

さいたま2000 (太鼓の達人)

by Kuppi-scratch

Project thumbnail
View Project

ふわふわ、転がれ!|Fluffy, Roll !

by Moko-Fuwa

Project thumbnail
View Project

Higher or Lower? - A Mobile Card Game

by bgvikings08

Project thumbnail
View Project

Cookie Run - Dark Enchantress Cookie Boss Battle (Cookie Run Kingdom)

by FireMayro

Project thumbnail
View Project

Geometry Dash Silent Sonic Wave/Silent Circles Wave Challenge

by wallyt12

Project thumbnail
View Project

DinoWorld V1

by -yeldarbnivot-

Project thumbnail
View Project

09noahjohn Nineparison (reupload)

by calebcohenour

Project thumbnail
View Project

RED ZONE(スクリプト演奏)-2

by rikadaisukinahito

Project thumbnail
View Project

Scratch RPS v0.1

by Wildmonk-2