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

Windows Thin PC Remasted Sound Effects Edition Crazy Error Maker (Very Funny and G-Major Sound)

by CatCzE

Project thumbnail
View Project

Plants vs Zombies

by CHEEZ_WHIZZ

Project thumbnail
View Project

III simulator but with people's characters (3/18)

by snowmanpizzaboy

Project thumbnail
View Project

talking tom and ben news part 3

by PRINCESS000000001

Project thumbnail
View Project

[new letter!] the full RALR cast! remix-3 remix

by laypyaehtike

Project thumbnail
View Project

Make Your Own BFDIA remix

by mikeymcg75

Project thumbnail
View Project

Nickelodeon Creatures Text Engine 9.0 Fixed

by benlogofan

Project thumbnail
View Project

flappy bird!

by nugzy_301

Project thumbnail
View Project

Nickelodeon Creature Letters Interactive (49)

by DCTS0317

Project thumbnail
View Project

AY in Conveyor Runners! [ Remix 4 | 23 Players ]

by lillyk2021

Project thumbnail
View Project

Beat Up Bonzi Buddy DLC remastered remix remix

by matheuscm1

Project thumbnail
View Project

BFB 1 Four screeching scene ReReReanimated

by mrbloxykid

Project thumbnail
View Project

talking tom cat skibidi version

by duarterobin_pao

Project thumbnail
View Project

Secret Staycation Band 7 (@misternop’s Version)

by duxipa19

Project thumbnail
View Project

FNAF Fangames Ultimate Custom Night Scratch Edition

by EmeraldStan16

Project thumbnail
View Project

【架空LCD】中央本線 あずさ・富士回遊3号

by syogo_solur_n

Project thumbnail
View Project

Tug of war squid game

by sweetment

Project thumbnail
View Project

Santa's Retrieval Mission || A platformer #All #Games #Art #Music #Stories #Trending

by dwseoh127

Project thumbnail
View Project

Armed || Tower Defense 2 #games #all

by clnsbstnkng

Project thumbnail
View Project

【アニメ】異世界からの脱出 #19

by harukingusann

Project thumbnail
View Project

【東方PV(一番のみ)】酔いどれ知らず ~レミリア・スカーレットver.~

by BlueYTR35

Project thumbnail
View Project

iPad Goes Flush ☠️ remix

by CozmoGaming

Project thumbnail
View Project

Alphabet Lore Band miscellaneous 3 (Symbol Lore Band 2) remix

by hotwheelskell

Project thumbnail
View Project

ฉ | Thai Alphabet Lore Reloaded

by sebretes