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
ただのアニメ #66 怖い話
by mizukusa164
Tom and Ben News Back on Television! v 3. remix
by jace18099
Barney Error Maker
by Hasanegestudent
Beat Up DNB (5)
by newmyles
Dalgona
by DrSmidt
Number counter
by Dung3976
Colorblocks band But Coolors (Day 12)
by dano0219
OR IS IT?? || #animations #all #stories
by -ComicallyComical-
Fidget spinners
by Unicorngirl300
Geometry Dash World Toxic Factory
by CrystalKeeper7
スリザリオ (日本語版)
by hclhcl
KyleWare: Ultimate Microgames! (v1.36) (Yellow Hotel)
by TheScarfedStickman
アンダイン アンダーテール Undyne Undertale
by tayuu
DOOM
by Batman1948
Status Effect Log [ Remix 35 | 128 Effects ]
by bluejay7
Bloons TD 6 (Custom Towers, Maps, Bloon Skins and Heroes Edition) VOTE FOR NEW MONKEYS
by reflectorgenie
Random Stuff has a Sparta GSC Remix
by DeJuan123456789
Black Hole Add Round 50
by Numberblockgamer8694
Parkur game beta 0.6 (bugs)
by AGamer_3623
Opening to Lalaloopsy Littles The Movie 3 DVD
by AlejandrixKing245
Google [BETA 0.64]: Fathers Day 2024
by yigitkomutan45
wither stor r/ m high effort real
by Butterknives64
remade e so he can fit in with the others
by 1020672
Windows 7 error maker v0.06
by catboybood_roblox