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

Cloning test

by coinman

Project thumbnail
View Project

For @ROBLOXIsdaBEST168 because you can’t find the appropriate pose for Alphabot!

by Olihat

Project thumbnail
View Project

Jester Mod ☁️ Among Us Scratch v0.27 (online) remix

by SPS3DP3

Project thumbnail
View Project

Garry's Mod in SCRATCH Engine

by Joseph_da_Hegdehog

Project thumbnail
View Project

Hickory Dickory Dock Wowu

by alfche1262

Project thumbnail
View Project

Collection of endless numbers (45 to 2763)

by BTM2913

Project thumbnail
View Project

Incredibox - KATS (almostFINISHED)

by pulguitadebarro

Project thumbnail
View Project

Turboprop Flight Sim Scratch Edition (FAILED)

by mattmarlow

Project thumbnail
View Project

Task Unthinkable Lite

by Mettaton-64

Project thumbnail
View Project

Founed a 4th outfit of little mac in knock-out!! beta 1.3.1 files

by mat2041

Project thumbnail
View Project

❶+❷=❸ | TᕼE ᔕTᑌᗪIO ᗪOOᖇᔕ Oᖴ ᑎᑌᗰᗷEᖇᔕ - ᑭᗩᖇT ❺ - 427/500 ᗪOOᖇᔕ | ❹=❺+❻

by KARises

Project thumbnail
View Project

Beat Up Sonic (Advanced!)

by codingwarrior17

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v1.9155)

by Redshell3

Project thumbnail
View Project

INTRO TEMPLATE TEST LOL

by DonMessager

Project thumbnail
View Project

Super Sonic Maker remix

by BruceWillison

Project thumbnail
View Project

Samsung Galaxy z flip 3 5g ≋Simulator≋

by petergamesapple

Project thumbnail
View Project

【ShortPV】怪物(YOASOBI)/あおくん。

by 524-g

Project thumbnail
View Project

Batteryblocks Band 9

by SharkyBlues3rd

Project thumbnail
View Project

numberblock band 65536ths 1 remix

by cun042014

Project thumbnail
View Project

beat up part 2

by mavincraft34

Project thumbnail
View Project

放置ゲー×バトルゲー2 ver.2.96 =拡散希望=

by poooooooooonta

Project thumbnail
View Project

House(bathroom, living room, kitchen, bedroom) remix

by Nopiemuse

Project thumbnail
View Project

Beat up polly roger

by Ian6464

Project thumbnail
View Project

Make your own BFDI/TPOT 2.0

by Fries-14