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

fnf two test

by dark_slayer_2000

Project thumbnail
View Project

number time

by StellaZan2025

Project thumbnail
View Project

Incredibox - Sprunki Sinner Edition loll

by ELPODEROSOPQ

Project thumbnail
View Project

Super Smash Bros. Melee Marble Race

by MinionPigFan21

Project thumbnail
View Project

Numbers Band 64 311-345

by tatudobenja2407

Project thumbnail
View Project

BEAT ME UP!!! [EFFECTS!!!]

by Alfredo-Multiverse

Project thumbnail
View Project

Sussy Schoolgrounds 6 but Better

by 096_Aiden

Project thumbnail
View Project

Sprunki Oc Real Sprite Pack (1) remix-7 [not mine]

by mariaeunia3785

Project thumbnail
View Project

bfdi lipsync and blink thing test

by rofunkin

Project thumbnail
View Project

Holy Bear? // ft Buddy The Blue Dog

by AnimatorExpands

Project thumbnail
View Project

Flappy Bird! remix

by khramskid

Project thumbnail
View Project

Beat up Edward Omega (3)

by everton123E

Project thumbnail
View Project

Square-Triangle-Numberblocks band

by Kareem_j32

Project thumbnail
View Project

AY in Hextic! [ R7C | P22 ]

by RDash75

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v1.1)

by TheScarfedStickman

Project thumbnail
View Project

Pac-Man Classic (Credit to Bandai Namco)

by Taylor_Scratch_21

Project thumbnail
View Project

3D Platformer ヒチヒチスラむム【2】!! 100%PEN οΌˆγ‚Ήγƒžγƒ›ε―ΎεΏœοΌ‰

by nakakouTV

Project thumbnail
View Project

I might have burnt my tamales

by Redd_Chili

Project thumbnail
View Project

Beat up Evil Green Square

by jl381367

Project thumbnail
View Project

New Super Mario World v4.0

by _nakashima

Project thumbnail
View Project

Platformer γƒ—γƒ©γƒƒγƒˆγƒ•γ‚©γƒΌγƒžγƒΌ

by shu73

Project thumbnail
View Project

MSDos: Stickman Adventure

by SuperOscarJrScratch

Project thumbnail
View Project

Minecraft Battery OVERCHARGING to ABSOLUTE INFINITY remix

by tuifortkutus

Project thumbnail
View Project

project

by jamesmj300