Realtime Affine Texture Mapping (WIP) copy
by DCPU-16
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
cometas- diego jimenez
by kiddiego
Beat up Seven DLC his luck in easter sunday remix
by xmrrileyxx
(UPDATED) Interactive Spanish Alphabet Lore Remade remix
by CathrineStar
Piano Tiles 3 remix
by traineremmett
Geometry Dash Tidal Wave
by GOLDENSPYTHEBEST
Endless Type - The Game From Endless
by rockzstaramadhanz
Sprunke 666 copy-2 copy copy
by Elsanto150518
Lost Project: Beat Up evil dee but i edited it
by ticpac9000
The Roaring Knight Attacks(Updated)
by Bacon-XD
Snake & Lasers! (Game)
by -TotallyEpic-
alfredoletters
by computermw
{Archive} Fix-It Felix Jr. version 0.5
by elgooGmirror
Beat up Peppa Pig Update 1.1 remix remi
by dan_yam
KARLSON
by ASDFboy_Legacy
Fifa 22 Ultimate Team v3 Beta NEARING END OF LIFE
by Atomking
β 3 Years Dodge β
by betelgeuse_17y
Noah's Ultra Numberblocks Night
by Supernoah65
Beat up Pico!
by tatatino150again
3D Splatoon many features :mobile ok:
by sousoutnk
Jumpstart Number Band 851-860 sorry 853 doesn't move arms
by recoverjeff
Black hole add round 1
by Diddyer78
Numberblocks Band 1-100 Quintillion (Part F:1Quintillion-100 Quintillion)
by CrystalGod2023
1000% Battery Overcharging remix
by Robofun220507
漒欑ε γγ‘γ€γγγ’γΌγΊγΈγ§γγ
by BANTYO_evm71