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

Endless Reader but i remade it because why not remix-3

by leiner77

Project thumbnail
View Project

Beat Up X Button

by crazycrazybaby17

Project thumbnail
View Project

hjerter

by Fluffymonster123

Project thumbnail
View Project

BEAT UP SUPER WHY!! fixed remix-3

by bonzi346

Project thumbnail
View Project

PIGGY BACKROOM 3 Partygoer THEME

by Plklkl3

Project thumbnail
View Project

Anti Piracy Screen Reappearance

by KMJHJHY7I7Y97

Project thumbnail
View Project

MiniCraft: Remastered

by Darkcloak123

Project thumbnail
View Project

Mini Golf Online!     #StratfordJames

by StratfordJames

Project thumbnail
View Project

Interactive Friends at the Park

by mina8271

Project thumbnail
View Project

Make Your Own Bfdi Character! remix remix

by NUMBERBLOCK2020

Project thumbnail
View Project

The Button

by -SomeAnimator-

Project thumbnail
View Project

FLYING GIRLS - POWERPUNK GIRLS☁

by JesusFuentes81

Project thumbnail
View Project

Snowball Mine Simulator!!! v1.10

by Snowball_fan12

Project thumbnail
View Project

Potion Clicker v2.0.5 // #games #all

by babe_ri400

Project thumbnail
View Project

(Controls) [2017 Edition] Hyperactive Atlantic Hurricane Season Simulator remix-3

by Hurricane_Janet

Project thumbnail
View Project

Chess tweaked

by meonguy1

Project thumbnail
View Project

Fruit Ninja Scratched

by king8766

Project thumbnail
View Project

Triangle Fillers Compared

by TheGoodGuy2000

Project thumbnail
View Project

ζŽ¨γ—γƒˆγƒ¬2000

by projectroom_kurihama

Project thumbnail
View Project

FNF timeline collapse(tt tbs cover)with my oc

by yj4517

Project thumbnail
View Project

beat up face ADD MORE ball AAAAAAAAAAAAAAAAAAAA

by RafaelCardoso2016

Project thumbnail
View Project

Splatoon γ‚Ήγƒ•γ‚šγƒ©γƒˆγ‚₯ーン

by FunnyAnimatorJimTV

Project thumbnail
View Project

(OUTDATED) Dylan's Showtime Downloader

by Adrianito2011

Project thumbnail
View Project

(Reupload)Beat Up Edward 2

by Tyler-Time