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

Make your own BFDIA v2 but my faces

by mememenerd345

Project thumbnail
View Project

Beat up Klaskychoopo64 (me) remix

by Lestat1025

Project thumbnail
View Project

F N A F 2

by DP5gaming

Project thumbnail
View Project

Talking Knife and Fan News 2

by JacksonStormNew

Project thumbnail
View Project

(REUPLOADED) MORE BEES!!!!!! (Remastered)

by zyron74

Project thumbnail
View Project

All effects all once

by User-6tEk

Project thumbnail
View Project

disco snail animation

by dragon_acorn

Project thumbnail
View Project

Nissan GTR R35 2012 speedometer remix-7 remix

by NissanGtrR34-R35

Project thumbnail
View Project

me at fox photo shoot

by selenagomezreal

Project thumbnail
View Project

beat up the scratch cat remix remix remix remix remix remix remix remix remix remix

by MyCottage

Project thumbnail
View Project

Among Us! (new version)

by bezu16

Project thumbnail
View Project

Paper Minecraft building game- ItzzDarius

by ItzzDarius

Project thumbnail
View Project

Super Sonic Maker

by SUPERLUIGI1010

Project thumbnail
View Project

新着 ★ Ꮆ尺闩ᐯ工ㄒㄚ乙㠪尺龱 ▲ OFFICIAL AMV

by Natures_love

Project thumbnail
View Project

DinoWorld V1

by -yeldarbnivot-

Project thumbnail
View Project

Beat Up 1 The Noom [3]

by christywifi

Project thumbnail
View Project

Beat Up Baby Shark remix

by CLAX1212

Project thumbnail
View Project

Moonshine Mob Test

by kidnix

Project thumbnail
View Project

Mini-Python - Run python 3 commands in scratch

by minetester

Project thumbnail
View Project

all Talking Tom And Ben News HD V4

by mateothebb

Project thumbnail
View Project

リメイク版忍日本戦記 第一章 甲賀争乱編

by nagi_m

Project thumbnail
View Project

Low Battery VTech, Duracell Canadian Batteries Come

by Blueboy726

Project thumbnail
View Project

Hill Climb Racing Multiplayer

by Cadjavica

Project thumbnail
View Project

地震シミュレーション ver3.1+Remix(Ver.0.2)

by Madopro-1488