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
Angry Birds SE [V1.0.2] remix
by khpe200105
Magic Tiles 3
by cityskylinesmaster1
NB: The Night of All Nights : NBB1 Jumpscares [Add my Game Over Screen]
by 20cobycastrellon
Alphabet lore
by Himper_SILLY123
NICKELODEON CREATURES TEXT ENGINE (THE BIG UPDATE)
by siddharth1717
AYS: ABUSE
by RaVe-Fn
Stenslandic Alphabet Lore (My Take)
by TheScratchGuy13
My Nickelodeon Creatures Spell - 1 But With Actual Creatures
by siddharth1717
Interactive Endless Numbers (IEN)
by sbekert
AY in Super Star Mayhem (Friends Edition) V0.41 (41 Players) remix
by DanyB16
Numberblocks Generator
by MichaelJr2015
新・ボールころころ3
by s00384206
The mine song but its Funny
by SSStarWWWarsGGGamer
Status Effect Log [ Remix 48 | 160 Effects ]
by squeebs82
100% Pen Animation
by Archi019
説明は省く敵だ,,,紅魔館組VS主人公 東方PV
by aisu-teo
Friday night scratchers CHRISTMAS PART 2 UNFINISHED BULD
by Stas13032012
MINE WORLD α1.46.5
by tokotoko-captain
i remade angrybirds because rovio ruined it more
by alidenizgames
Smash Kombat (2 player fighting game)
by PandaBair
2024 Clicker
by -ProKKC-
Piano with Comey! (Alpha) #Music #Game #Trending
by Randoms_Games
Hydrogen.exe 2.0 not done remix
by viktorlot
Scratcher Clicker
by MetaKoven