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

All Numbericons 1-450

by Nataliehouchin

Project thumbnail
View Project

BFDI DVD Menu

by nanajeu

Project thumbnail
View Project

Seadtime Font V0.4

by crazymilkandres

Project thumbnail
View Project

Beat Up Bonzi Buddy: DEFINITE EDITION ADD ATTACKS! remix remix remix remix remix remix

by kubakoodziejczak

Project thumbnail
View Project

Henry Stickman

by sentyabr-2

Project thumbnail
View Project

Scratch's Eternal Ultimate Remix Challenge! | Part 1 | Mega | Level 166/3,000

by oO-RemixMaster-Oo

Project thumbnail
View Project

Windows XP - Happy Tree Friends Edition (Windows XP HTF Edition)

by MikileyHeeler

Project thumbnail
View Project

☁ Uno Online! #games ☁ remix

by TOM27102011

Project thumbnail
View Project

FNF: Pibby apocalypse Suffering siblings test

by SONICZIN21

Project thumbnail
View Project

SANDBOX MODE Pvz Fusion 3.7.1 (Mobile Friendly) upgrade

by quantoan

Project thumbnail
View Project

домофон гуськториал/Intercom Goosektorial

by cat_minecraft_6

Project thumbnail
View Project

Yearblocks Band 2001-2026

by IgnatiusGaming12345

Project thumbnail
View Project

Scratch 4.0 ideas

by Jurassic_World123

Project thumbnail
View Project

p head beat ups you

by mateo2ninja

Project thumbnail
View Project

The Windows 10 virus

by errorsans213

Project thumbnail
View Project

Beat Up Super Why! with way too much buttons

by liamdvd

Project thumbnail
View Project

Beta Super Mario Bros 3 Scratch Edition

by mohsinmahboob1

Project thumbnail
View Project

jumpstart AABBCC band Added More!

by CoolNumbe23

Project thumbnail
View Project

Lost World The Previous Ver.1.1.4

by hr0909z

Project thumbnail
View Project

The Flying Sleigh ★★★★★☆

by kumafuji1202

Project thumbnail
View Project

Explorers Geometry Dash Sneak Peak 2

by ScratchBoxI

Project thumbnail
View Project

Hill Climb Racing v1.0 remix remix

by koudaiyugo

Project thumbnail
View Project

tvokids bloopers 1 (1/10)

by GraysonLore

Project thumbnail
View Project

the full RALR cast chaos! (Done!)

by UNOREVERSECARDLO