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

Beat Up Doki, Guy And Girl II remix

by Draven1205

Project thumbnail
View Project

Add A Button To Beat Up Evil Windows 11 remix

by Rafanrafeek

Project thumbnail
View Project

SUBTERBALDI 2D In Scratch V1.0.1

by TotallyFake_GVERSE

Project thumbnail
View Project

windows vista build 2923

by SAD_EREN21

Project thumbnail
View Project

Add A Button To Beat Up Kick The Buddy! [0]

by juliescott12

Project thumbnail
View Project

scene 1 story board 3

by CircleBasic

Project thumbnail
View Project

Nickelodeon creatures: Russian letters that don't have sounds

by Mukhtar829

Project thumbnail
View Project

Color Rings

by Aardvark

Project thumbnail
View Project

Fidget Spinner Simulator 2.0 (V.04)

by BB_Productions

Project thumbnail
View Project

Fidget spinner

by davidwanqwerty

Project thumbnail
View Project

Basic English-Russian/Russian-English Translator

by RenacentACE743

Project thumbnail
View Project

雪合戦deバトル 改 V11 ハロウィン?

by 02515617

Project thumbnail
View Project

(PAGE 2!) Beat Up Squidward Half-Smash Bros Edition

by cs9999999999

Project thumbnail
View Project

Letter I

by vanhouchin

Project thumbnail
View Project

sky ボールころころ12

by skyblueball2

Project thumbnail
View Project

Beat up Edward 2

by Ziothedirector

Project thumbnail
View Project

Beat Up Letter C All Letters (Added K, M and J)

by CSJosue

Project thumbnail
View Project

「完成版」universe(3D&100%pen!)

by k0mune8

Project thumbnail
View Project

動くサムネ2

by GHKk_99

Project thumbnail
View Project

Zuma Deluxe Online (Scratch Edition) (Easter Edition)

by miltos6834

Project thumbnail
View Project

Sigma lift @ Tom & Ben News Residence v. 9.9.4.5 remix remix

by HKIBC

Project thumbnail
View Project

マイクラ1.20/ Paper Minecraft V1.20 remix

by shuumautsumi

Project thumbnail
View Project

The MouseHeadz (Reupload) remix remix

by flopneverstop

Project thumbnail
View Project

10 Days Left!

by Michaelblocks