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

Angry Birds SE [V1.0.2] remix

by khpe200105

Project thumbnail
View Project

Magic Tiles 3

by cityskylinesmaster1

Project thumbnail
View Project

NB: The Night of All Nights : NBB1 Jumpscares [Add my Game Over Screen]

by 20cobycastrellon

Project thumbnail
View Project

Alphabet lore

by Himper_SILLY123

Project thumbnail
View Project

NICKELODEON CREATURES TEXT ENGINE (THE BIG UPDATE)

by siddharth1717

Project thumbnail
View Project

AYS: ABUSE

by RaVe-Fn

Project thumbnail
View Project

Stenslandic Alphabet Lore (My Take)

by TheScratchGuy13

Project thumbnail
View Project

My Nickelodeon Creatures Spell - 1 But With Actual Creatures

by siddharth1717

Project thumbnail
View Project

Interactive Endless Numbers (IEN)

by sbekert

Project thumbnail
View Project

AY in Super Star Mayhem (Friends Edition) V0.41 (41 Players) remix

by DanyB16

Project thumbnail
View Project

Numberblocks Generator

by MichaelJr2015

Project thumbnail
View Project

新・ボールころころ3

by s00384206

Project thumbnail
View Project

The mine song but its Funny

by SSStarWWWarsGGGamer

Project thumbnail
View Project

Status Effect Log [ Remix 48 | 160 Effects ]

by squeebs82

Project thumbnail
View Project

100% Pen Animation

by Archi019

Project thumbnail
View Project

説明は省く敵だ,,,紅魔館組VS主人公 東方PV

by aisu-teo

Project thumbnail
View Project

Friday night scratchers CHRISTMAS PART 2 UNFINISHED BULD

by Stas13032012

Project thumbnail
View Project

MINE WORLD α1.46.5

by tokotoko-captain

Project thumbnail
View Project

i remade angrybirds because rovio ruined it more

by alidenizgames

Project thumbnail
View Project

Smash Kombat (2 player fighting game)

by PandaBair

Project thumbnail
View Project

2024 Clicker

by -ProKKC-

Project thumbnail
View Project

Piano with Comey! (Alpha) #Music #Game #Trending

by Randoms_Games

Project thumbnail
View Project

Hydrogen.exe 2.0 not done remix

by viktorlot

Project thumbnail
View Project

Scratcher Clicker

by MetaKoven