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

Смешарики "Компьютер взорвётся сейчас!" remix

by 751290

Project thumbnail
View Project

Minecraft Multiplayer, 1.15 JAVA. Compatible with servers.

by calvinlovesjesus

Project thumbnail
View Project

Interactive RALR Aliens

by WHYPHABET

Project thumbnail
View Project

Ultra Numberblocks Night 2020 Jumpscares (Dump) (FIXED)

by TheReturnOfJacePD

Project thumbnail
View Project

average night shift [basic demo]

by BobTheDelver

Project thumbnail
View Project

Dutch Alphabet Lore | a-z

by Himper_SILLY123

Project thumbnail
View Project

The Sussy Baka Show on the bridge But With Nickelodeon Creatures's Pets

by siddharth1717

Project thumbnail
View Project

code morse

by Wanme22

Project thumbnail
View Project

Remastered Nano gets grounded Geico commercial

by CopenHagenredbun222

Project thumbnail
View Project

cape mario redraw

by Sunnii_UU

Project thumbnail
View Project

52 Buttons Beat Up Template

by tiziland009

Project thumbnail
View Project

FIDGET SPINNER!!

by annathepineapple

Project thumbnail
View Project

The Studio Door of Numbers X [ 78 Doors ]

by PenYesBojNo

Project thumbnail
View Project

video recorder

by kihuy

Project thumbnail
View Project

NHL® 2K21 legacy edition

by memegod007

Project thumbnail
View Project

Cartoon Pizza/Playhouse Disney Original

by wesolyromek10

Project thumbnail
View Project

sans but with more moves and more canon DUST SAN VERSIO

by doomfan684

Project thumbnail
View Project

Beat Up Scratch Cat extreme remix

by Traw2016

Project thumbnail
View Project

Hungry Pumkin Full game but his head grows!!!

by GusTheDog1234

Project thumbnail
View Project

昆虫のプラットフォーマー!! 【虫好き必見‼】【虫取りできる!】#all #game #games remix

by iaysi257

Project thumbnail
View Project

Retaking the airship

by jvsc22234a26

Project thumbnail
View Project

Pizza Tower Party!

by PVZFan223

Project thumbnail
View Project

Undertale seven souls

by coderfishy

Project thumbnail
View Project

Beat up Edward with super bear adventure remix-2

by xdrtx2