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
Смешарики "Компьютер взорвётся сейчас!" remix
by 751290
Minecraft Multiplayer, 1.15 JAVA. Compatible with servers.
by calvinlovesjesus
Interactive RALR Aliens
by WHYPHABET
Ultra Numberblocks Night 2020 Jumpscares (Dump) (FIXED)
by TheReturnOfJacePD
average night shift [basic demo]
by BobTheDelver
Dutch Alphabet Lore | a-z
by Himper_SILLY123
The Sussy Baka Show on the bridge But With Nickelodeon Creatures's Pets
by siddharth1717
code morse
by Wanme22
Remastered Nano gets grounded Geico commercial
by CopenHagenredbun222
cape mario redraw
by Sunnii_UU
52 Buttons Beat Up Template
by tiziland009
FIDGET SPINNER!!
by annathepineapple
The Studio Door of Numbers X [ 78 Doors ]
by PenYesBojNo
video recorder
by kihuy
NHL® 2K21 legacy edition
by memegod007
Cartoon Pizza/Playhouse Disney Original
by wesolyromek10
sans but with more moves and more canon DUST SAN VERSIO
by doomfan684
Beat Up Scratch Cat extreme remix
by Traw2016
Hungry Pumkin Full game but his head grows!!!
by GusTheDog1234
昆虫のプラットフォーマー!! 【虫好き必見‼】【虫取りできる!】#all #game #games remix
by iaysi257
Retaking the airship
by jvsc22234a26
Pizza Tower Party!
by PVZFan223
Undertale seven souls
by coderfishy
Beat up Edward with super bear adventure remix-2
by xdrtx2