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

マインクラフト-サバイバル β版

by bunbouguu

Project thumbnail
View Project

tiny pop favourites volume 8 active collection fit as a fiddle 2023 dvd menu walkthrough remix

by cocoandco560

Project thumbnail
View Project

make your own trash

by Legoman11144

Project thumbnail
View Project

add your own button to beat up mario remix remix remix

by everton_trader

Project thumbnail
View Project

-<[{(Collabs)}]>- talking tom and ben news HD 2 remix

by kuponoIs

Project thumbnail
View Project

Don't touch the Child!!!

by ptv_23

Project thumbnail
View Project

Take out the garbage! #all #animations #art #trending #cat #cool #stories #contest

by -Cat_Scratchy-

Project thumbnail
View Project

My Talking Tom And Ben News HD Simpsons

by Tyler-Time

Project thumbnail
View Project

strays theme songs 1

by -sqvid

Project thumbnail
View Project

(YTPMV) (YTPMV) Scan X16 PicPlayPost Scan remix-24

by Klofhehe

Project thumbnail
View Project

jump rope squid game #squidgame

by gamblers_hevan

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v1.0)

by Twin138956Scratch

Project thumbnail
View Project

All Sample Audio G Major Effects Part 14 remix

by jjones27026

Project thumbnail
View Project

underline SANS FIGHT!

by bouningen-kun

Project thumbnail
View Project

TCTYDKJ2IN: Question SEGUES! (14/20)

by Isaiahfan2021

Project thumbnail
View Project

Uno Reverse Card | #All #Animations #Art #Stories

by Cool_NickXD

Project thumbnail
View Project

RNG(본편)

by Lokav-

Project thumbnail
View Project

3D raycasted minecraft V1.1

by AntoineTelgruc2

Project thumbnail
View Project

(FNF) Rainbow Friends Test 〜Friends To Your End〜 Ver.2.1

by Peipei---

Project thumbnail
View Project

Toilet Flush (Mr. Swirly)

by Axel_the_fox07

Project thumbnail
View Project

2048 Tiles 451-500 remix

by MichaelSecondAccount

Project thumbnail
View Project

The Luxe Gala (2025)

by Matthew_K1

Project thumbnail
View Project

Beat Up Scratch Cat 2 remix

by GageIsSoCoolOmg

Project thumbnail
View Project

Rozumiem ze względu w tarapaty

by Olek32167xv