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

A Block and a Hard Place [BETA TESTING] coa's witherstorm

by coa545465

Project thumbnail
View Project

The Hotel - Doors Floor 1 (UNFINISHED)

by gamercreatorpro

Project thumbnail
View Project

Abgerny 2 but sprunki (V3.5).

by Scratcherepicman

Project thumbnail
View Project

Numberblocks Band ReTrillion Remastered (0.5M-10.0Dec)

by Calebv1223

Project thumbnail
View Project

[2] THE LAST PIPE v1.1

by davroda

Project thumbnail
View Project

scene 1 story board 3

by CircleBasic

Project thumbnail
View Project

sprunksters final update

by thesongcopy

Project thumbnail
View Project

Bfb intro

by 1spaCe2dinOs

Project thumbnail
View Project

Preview 2 Scratch Cat in X Major 1+G Major 4

by TKTOT2025

Project thumbnail
View Project

Steven Universe - Create Your Character

by cartoonnetwork

Project thumbnail
View Project

random animation (10 min arcade)

by Audrick323

Project thumbnail
View Project

宇宙突戦争 Space War シューティング ver1.6

by gamepg

Project thumbnail
View Project

Which Way Does The Water Flow?

by stopmotionpenguin

Project thumbnail
View Project

MSMAOA 0.9.9 prerelease 1!

by jack8547

Project thumbnail
View Project

Endless alphabet C-2 - CELEBRATE

by Roseor

Project thumbnail
View Project

Nothing found XD

by Luchim15

Project thumbnail
View Project

Beat Up E-200 remix

by TFXintheScratch

Project thumbnail
View Project

NickNack: Christmas Fools remix

by Boizam364

Project thumbnail
View Project

(MOST VIEWED VIDEO) Cat Leopold Says Klasky Csupo Effects 2 in Chorded into G Major

by JPPORTUGAL

Project thumbnail
View Project

Wither Storm Simulator 2 remix-10 remix remix

by blakanorus

Project thumbnail
View Project

Super Why! End Credits Season 3 Fixed Again

by sankevind

Project thumbnail
View Project

Talking Tom Cat 2 V1.2

by _-_ThomasTrain_-_

Project thumbnail
View Project

Bren319's Russian Alphabet Lore 3.0 Request

by bazaustin

Project thumbnail
View Project

3DBB!HYPER Dust(but playable)

by amongusman33