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

(YTPMV) Windows BSOD Startup Sound Scan^2

by truthbaconALT

Project thumbnail
View Project

Geometry Dash Silent Clubstep noclip

by peregrinex3

Project thumbnail
View Project

Angry Birds game maker remix

by isacdaniel090909

Project thumbnail
View Project

Add A Button To Beat Up BBC Four

by GantaTheGamerFan2K9

Project thumbnail
View Project

Add Yourself Fighting in the Teamwork Trouble Fight Cloud (21)

by jillybean511

Project thumbnail
View Project

Ultra Numberblocks Night 2020 remix-3 remix

by leoprincipe04

Project thumbnail
View Project

Beat up YOSHI remix

by cpproject

Project thumbnail
View Project

Totk Type

by sangjjjjj

Project thumbnail
View Project

TSB-remix

by wellco973

Project thumbnail
View Project

Number Decimals Band EP. 0.5: Part 1

by joscratchpro

Project thumbnail
View Project

Everybody do the flop song! remix by Creeperjamer23 credit to frankiewhizz4

by Creeperjamer23

Project thumbnail
View Project

Beat Up Edward DLC added vade remix

by Macjun12

Project thumbnail
View Project

Beat Up Edward DLC added vade remix remix

by everton123E

Project thumbnail
View Project

The Studio Door of Numbers X (8 Doors)

by jacob630

Project thumbnail
View Project

dads

by mub17

Project thumbnail
View Project

FNF - (VsMatt Mod) Full Week With D F J K Controls!

by mushr0o0m

Project thumbnail
View Project

beat up scratch cat, ultimate edition remix

by CLAX1212

Project thumbnail
View Project

Beat Up 1990's BBC Ver 1.0

by TinyTruePop

Project thumbnail
View Project

CLONECRAFT 0.11 (Outdated)

by xxlscratch

Project thumbnail
View Project

Beat Up 2022 Disney Channel (Unfinished Project) remix

by newmyles

Project thumbnail
View Project

A983's black hole add round 1

by afrost7227gh

Project thumbnail
View Project

bop it refresh demo

by androidev2567

Project thumbnail
View Project

windows 11 simulator (Trash Bin +Roblox (its WIP))

by AdiAbd

Project thumbnail
View Project

Make your own BFGC!

by BlueWTFR