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

Numberblocks Intro but its 2000 but broken

by srmexicoballelpro

Project thumbnail
View Project

譜面作ってください【PUPA編】

by -pte-

Project thumbnail
View Project

Yamishca Gumiber but nano+

by SAunokarreem1234

Project thumbnail
View Project

Beat up two v0.1 remix

by xmrrileyxx

Project thumbnail
View Project

beat up kane 2004 Remastered 2

by mugpanic

Project thumbnail
View Project

Gd faces

by scratch_io24

Project thumbnail
View Project

Gd Lobotomy difficulty faces (Remastered)

by syafiqwanrazaliJR

Project thumbnail
View Project

Forsaken Friend Elliot art ///CLOSE TO ME FORSAKEN/// #JSAB #FORSAKEN #ART #LOBSTERMEAT

by hot_cholklet

Project thumbnail
View Project

Among Us (Remix)

by DeboGirl

Project thumbnail
View Project

FNF: Racing

by BlueHedgehog16

Project thumbnail
View Project

Beat up Seven because you want his luck remix remix-18

by xmrrileyxx

Project thumbnail
View Project

APPLECORE FNF PLAYABLE

by topeener123

Project thumbnail
View Project

AY In Don't Fall Off The Trampoline anti piracy screen

by Louislandclub

Project thumbnail
View Project

Make your own BFDI! (With Recommended Characters)

by ennardandminirina

Project thumbnail
View Project

klasky csupo effects 6

by robinbrady16

Project thumbnail
View Project

Full Pendulum

by batemanb08

Project thumbnail
View Project

謎猫大戦争 ver2.0

by penginFM444

Project thumbnail
View Project

(没)Bad Time Trio

by aboabk

Project thumbnail
View Project

Beat Up Bandu Buttons

by newmyles

Project thumbnail
View Project

Basically Super Mario || #Animations #Trending (⌐■_■)

by YeetachuAnimation

Project thumbnail
View Project

【スクリプト演奏】Fantaisie-Impromptu Op. posth. 66

by Yukkkkkkkkkkkkkkkkku

Project thumbnail
View Project

My effects kit 3.0

by red200andvenko

Project thumbnail
View Project

FNF [TEST PLAYGROUND] The Squidward Tricky

by milohcraft

Project thumbnail
View Project

放置ゲー×バトルゲー2"P"=超拡散希望=

by poooooooooonta