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
Beat Up X Button
by crazycrazybaby17
AY in Blame N' Flame DELUXE [ Remix 17 | 37 Players ]
by Cyanwisp79
Windows 11
by khkthtkfjjcjgjnj
Happy 16th Birthday PVZ!
by mjgame2020
talking tom and ben news HD 2 ERREAPE remix remix
by azoriad
Real PIANO EFFECTS remix
by theinventorsgame
Every MouseHeadz OC I Made In 2023
by MaryannKitty11
Deltarune movement train test
by Goodmaster413_
日常に潜むYOU DIED
by NM_i
Wither Storm Game Continuation remix
by withered_king
9 KlaskY Csupo Logos remix-2
by calebdoodlebug
The Fidget Spinner (HD)(100%PEN)
by gulu007
Sonic Party - Say "A" or "B"
by djscope
阿吽のビーツ【オリキャラPV】
by you-423
Endless Monsters will scramble your word. remix
by Ethantreehouse123
pong atari 500 2 player... for now
by Mrgeeby911
Beat Up Cat Fixed Again
by zzhhooookk
Fnaf 3 v1.3
by -Ultamate_Coder-
Beat up Spongebob
by Lalajo3232
Beat Up Ash Ketchum and Iris (NOT FOR YOUNG CHILDREN)
by TomoTakinoUTTP4000
Untitled Dice Game
by ducdat0507
(RQ) Preview 2 Scratch Cat in Crazy Diamond remix
by noattitudes
Add A Button To Beat Up Evil BBC One! (9)
by GooleSharty122
Beat Up Evilbross extreme remix
by everton_trader