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

I got Endless Reader School Editon!

by Olihat

Project thumbnail
View Project

beat up scratch 2.0 remix

by Lestat1025

Project thumbnail
View Project

YOU CAN EAT IT!!!!!!!!!!!!!!!!!

by mr_chezinovich

Project thumbnail
View Project

Windows 11 project

by Maksimka123Lol

Project thumbnail
View Project

(AY) The Approaching Black Hole (16)

by lexailya2024

Project thumbnail
View Project

Numbers 1 to 1,000,000 with Beebzz Font

by IAMBACK__

Project thumbnail
View Project

【ファミコン風音楽】フューリーワールド「プロペラ砦」

by kenjirina95

Project thumbnail
View Project

We Become What We Behold But Better

by MasterMan2023

Project thumbnail
View Project

Pvz Clicker (Plants Vs Zombies) NEW UPDATE!

by emmetnn

Project thumbnail
View Project

Incredibox- CorruptBox but Sprunki oc real....

by TheNightz_

Project thumbnail
View Project

Minecraft-ish MMO RP SEVER

by TheRandomCatXD

Project thumbnail
View Project

House Numbers Font V17.5

by Steven_and_friends

Project thumbnail
View Project

Better Scratch (33+ NEW BLOCKS!)

by RAINETHEPRO5849

Project thumbnail
View Project

Answers to my Q&A||#all#animations#cool#trending#funny

by Craft_TV

Project thumbnail
View Project

PolyRhythm (Rhythm Game)

by DecaTen

Project thumbnail
View Project

GD | SPAM CHALLENGE

by DrizzlyRB

Project thumbnail
View Project

DaveAndBambi2022 Button [Beat Up Game]

by DaveAndBambi2022

Project thumbnail
View Project

3D Museum (3D Engine with Textures)

by BamBozzle

Project thumbnail
View Project

Beat Up Shiny The Sunny Bunny remix

by pocoyoKirk

Project thumbnail
View Project

spiffy pictures .EXE BUTTONS I

by nathankone

Project thumbnail
View Project

Scratch Paint Online! Infinite Players!

by bigbonesjones_tutor

Project thumbnail
View Project

POCOYO™ RACING | v0.3.6

by UltraProjectMaker

Project thumbnail
View Project

f n a f 2 + custom night ;)

by fortnitefan111

Project thumbnail
View Project

Preview 2 Scratch Cat in G Major 37

by gamerboy1228