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

(チャット翻訳機能)☁️アモングアス オンライン 日本語版 / Among Us Online Scratch Remake Japanese Version remix copy

by AI_HABU_A_PENN_sub

Project thumbnail
View Project

Franchise QB (pt.1)

by JaydenDaniels24

Project thumbnail
View Project

TPOT: Your Way!

by Coolhunt5

Project thumbnail
View Project

Seadtype V10.7

by 123456free

Project thumbnail
View Project

chick figures ep 2 dress to impress

by 6lebs

Project thumbnail
View Project

Playing Foxo on a Nintendo Controller

by Me222229

Project thumbnail
View Project

Sonic Scratch Demo 722

by ugandaknucklesboii

Project thumbnail
View Project

face

by piczy25

Project thumbnail
View Project

Candy S3rl |ft: Yatta

by I_love_eating_lychee

Project thumbnail
View Project

ASCII Key Detector

by griffpatch

Project thumbnail
View Project

Space Sphere

by hugmyster

Project thumbnail
View Project

Scratch Bloons TD HACKED!

by QwertyMaker2019

Project thumbnail
View Project

Simple Platformer Game

by warfame_test

Project thumbnail
View Project

Tom and Ben РЕКЛАМА

by fedyafedin

Project thumbnail
View Project

(FANMADE) Ohio EAS Alarm

by 09jonahboy

Project thumbnail
View Project

online PLATFORMER!! プラットフォーマー オンライン

by RRR-scratch

Project thumbnail
View Project

どっちぼおる逸話 能力者

by kinnsiwa-do

Project thumbnail
View Project

Часы Мир 2016-н.в Скринсейвер

by PlayGamePad

Project thumbnail
View Project

Numberblocks Band Retro 1 761-1 770

by Mecurn

Project thumbnail
View Project

Sharkbite (Roblox) [Switch4FortNite contest] #all #games

by FirePicx

Project thumbnail
View Project

[Broken in Scratch3] Pen Vid-player +Pokemon & Dr Who demos

by DadOfMrLog

Project thumbnail
View Project

Spanish Alphbet lore | A

by CH_creator

Project thumbnail
View Project

The Railways Of Crotoonia: The Movie: Blu-ray DVD Menu

by Bearvrick

Project thumbnail
View Project

ADD YOURSELF USING TOOLS TO DEMOLISH SPRITE1

by Greenwave_Rebirth