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

cometas- diego jimenez

by kiddiego

Project thumbnail
View Project

Beat up Seven DLC his luck in easter sunday remix

by xmrrileyxx

Project thumbnail
View Project

(UPDATED) Interactive Spanish Alphabet Lore Remade remix

by CathrineStar

Project thumbnail
View Project

Piano Tiles 3 remix

by traineremmett

Project thumbnail
View Project

Geometry Dash Tidal Wave

by GOLDENSPYTHEBEST

Project thumbnail
View Project

Endless Type - The Game From Endless

by rockzstaramadhanz

Project thumbnail
View Project

Sprunke 666 copy-2 copy copy

by Elsanto150518

Project thumbnail
View Project

Lost Project: Beat Up evil dee but i edited it

by ticpac9000

Project thumbnail
View Project

The Roaring Knight Attacks(Updated)

by Bacon-XD

Project thumbnail
View Project

Snake & Lasers! (Game)

by -TotallyEpic-

Project thumbnail
View Project

alfredoletters

by computermw

Project thumbnail
View Project

{Archive} Fix-It Felix Jr. version 0.5

by elgooGmirror

Project thumbnail
View Project

Beat up Peppa Pig Update 1.1 remix remi

by dan_yam

Project thumbnail
View Project

KARLSON

by ASDFboy_Legacy

Project thumbnail
View Project

Fifa 22 Ultimate Team v3 Beta NEARING END OF LIFE

by Atomking

Project thumbnail
View Project

β˜… 3 Years Dodge β˜…

by betelgeuse_17y

Project thumbnail
View Project

Noah's Ultra Numberblocks Night

by Supernoah65

Project thumbnail
View Project

Beat up Pico!

by tatatino150again

Project thumbnail
View Project

3D Splatoon many features :mobile ok:

by sousoutnk

Project thumbnail
View Project

Jumpstart Number Band 851-860 sorry 853 doesn't move arms

by recoverjeff

Project thumbnail
View Project

Black hole add round 1

by Diddyer78

Project thumbnail
View Project

Numberblocks Band 1-100 Quintillion (Part F:1Quintillion-100 Quintillion)

by CrystalGod2023

Project thumbnail
View Project

1000% Battery Overcharging remix

by Robofun220507

Project thumbnail
View Project

ζΌ’ζ¬‘ε…ƒγƒ•γ‚‘γ‚€γƒ–γƒ„γ‚’γƒΌγ‚Ίγ‚Έγ‚§γƒƒγƒˆ

by BANTYO_evm71