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
interactive Adrian's Spanish Alphabet Lore But With His Spanish Number Lore remix
by Kingtyler04
Incident csupo bellows stuck on Glue loop
by winiboycartoon
Talking Tom and Ben News in scratch edition CACCAS
by sonicgamersspeed
buildingbox v1 building
by phg_2o7
Windows 11 起動画面
by Windows10Sounds
P2SC in haunt
by DanielSecondAccount
Beat up me 1.0 ! remix
by nanogetsungrounded16
Beat Up F-77
by EthanKyle2022
Gray Error Supernatural Modes
by russellhtf
Pacman remake
by TooGood4UonCode
1 - 1000
by RealAidanNI
Roaring Knight Fight
by ThatOneFriend8675
make your own BFDIA elimnation!
by abhian123
Vi Dico La Mia Superscel Id DI Brawl Stars
by EndermanSC2
The Studio Doors of Numbers I - Part II (182 Doors)
by MyCottage
Letter I
by Dylanrocks381
The Studio Door of Numbers X (8 Doors)
by jacob630
CRUMBLING TOWER - a game
by jfan-deanza
Geometry Dash Deformed Mini-Wave
by wallyt12
☁Brawl.io 日本語版 オンライン
by meron0gou
Cat’s Quest ~UPDATE 2.18.1: ENCHANTMENT~ || #Game #Art #All
by Nam152009
Fixed all animals2
by S67752
soinc vs soinc exe
by fe78aalemil
Endless Greek New Animations remix remix remix
by pingau9th