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

JumpStart Number Band 101-110 (Read Desc) V2

by cgsd4545

Project thumbnail
View Project

Windows 8 Crazy Error with Latvian

by nihaelmannukadan34

Project thumbnail
View Project

***the best star star clicker in the world***

by krub10

Project thumbnail
View Project

talking tom and ben news remix-2

by bonzi346

Project thumbnail
View Project

Second Update of Mickey Mouse Vector Collection

by Magician_Mickey

Project thumbnail
View Project

Seadtype V7.6

by crazymilkandres

Project thumbnail
View Project

The scratch 3.0 Show Shorts Painful Toe remix

by kwill945tutorials-3

Project thumbnail
View Project

Numberblocks Times Table Grid Updated (help)

by Goodall8434

Project thumbnail
View Project

Seadtype V12.9

by BBTLEOfficialScratch

Project thumbnail
View Project

γ€γ‚³γƒŸγƒ₯ε₯½γζ„Ÿθ¬γ€‘η«ε±±γ‚’ε™΄η«γ•γ›γ‚‹γ‚²γƒΌγƒ γ€ζ‹‘ζ•£εΈŒζœ›γ€‘

by _-marucchi-_

Project thumbnail
View Project

Sprunki Parodybox CITY port #all #games

by leezep

Project thumbnail
View Project

jump rope squidgame

by -B4rr3tt_Animations-

Project thumbnail
View Project

JKMP inc.70th Anniversary logo (2002)

by TheScratchBross

Project thumbnail
View Project

Windows Vista v0.0.1 Beta

by snowball1359

Project thumbnail
View Project

Please Disney, Don't turn me into a Pop It

by Gamer-edit

Project thumbnail
View Project

All Blue Mist #41

by TheGamerAndy_16020

Project thumbnail
View Project

Circle Simulator. V1.3.7

by Badman1254

Project thumbnail
View Project

Spiffy pictures EXE Buttons(Part1) remix remix

by mutaz333

Project thumbnail
View Project

3D raycasted minecraft 1.2.6

by AntoineTelgruc2

Project thumbnail
View Project

MonthBlocks Band Version (Added Undecember)

by AlexTheCreationer

Project thumbnail
View Project

Pendulum Wave remix

by 31000000

Project thumbnail
View Project

WGBH Kids Logo (2008-2013)

by gamerboy1228

Project thumbnail
View Project

Tom and Ben News Returns beta 2.0 remix

by nathygames9087

Project thumbnail
View Project

Endless alphabet C-5 - CONTRAPTION remix

by jinhuy