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

FNF BF Test but 1-2-9-0 keys

by AhFlipYa_EvanSolace

Project thumbnail
View Project

Disbelief Papyrus simulator remix normal blaster on phase 5 ig

by papyrus22345

Project thumbnail
View Project

Nickelodeon Creatures Text Engine 10.6 remix

by Tufftifford1234

Project thumbnail
View Project

Beat Up Spectrum 3.0 remix

by jasiel37

Project thumbnail
View Project

Incredibox - alphabet lore

by ilikealphabetloreF

Project thumbnail
View Project

NBA 2K25 Pack Simulator! (Updated Version)

by Zondra9669

Project thumbnail
View Project

AY Reaction to Sega get Beat up by Nintendo (4)

by Sugar_Cookie_500

Project thumbnail
View Project

New Sonic Win Screen

by LegendarySandz

Project thumbnail
View Project

Geometry Dash - ship -

by bsmoa66

Project thumbnail
View Project

Everybody Edits (collab, read description,or use new tutorial!)

by zeusoflightning

Project thumbnail
View Project

One Night At Peashooter's | RE-Released

by coindiggerdev

Project thumbnail
View Project

Truck Driving Challenge

by awesome-llama

Project thumbnail
View Project

Harry Potter in 99 seconds with GIFs

by vkookie123

Project thumbnail
View Project

アンダーテール メタトンX001戦 phase1

by awowoi

Project thumbnail
View Project

MineCraft 1.19| UPDATED!!!

by HyvexJacket

Project thumbnail
View Project

Add A Button to Beat Up Boyfriend! (1)

by ydc103047

Project thumbnail
View Project

Numberblocks Band 181-190 pt1

by 36productions

Project thumbnail
View Project

Paper Minecraft 2.0

by XCoder32

Project thumbnail
View Project

Nano Bothers Tera

by ronaldocatan8

Project thumbnail
View Project

jayden's world let's play school 2023 dvd menu walkthrough

by jaydenkjames0929202

Project thumbnail
View Project

WGBH Kids Logo (2008-2013)

by gamerboy1228

Project thumbnail
View Project

Xóm Rách Việc-PVZW-Pea House2

by Tranbaofu

Project thumbnail
View Project

Add Yourself (And Your Reaction) To Princeoscar9 remix

by goofy_cat9

Project thumbnail
View Project

Make your own bfb/tpot voting icon!

by Waflee_