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
Non-Official Decayed Reality Wither Storm Models
by Connerplaz
Beat up Sonic (READ DESCRIPTION.) remix remix-3 remix
by jacejim1809
Paper Minecraft 1.21 / Tricky Trials / Minecraft 1.21 / #games #trending #trending #minecraft remix
by Icecream244466666
Beat Up OLEG 4
by lukemanolopoulos8
Beat Up Klasky Csupo! remix remix remix remix remix remix remix
by kubakoodziejczak
Endless Numbers: Number Factory But… My Servers Can’t Handle Infinity remix
by Tiger130923
bfdi 3 deleted scene remade
by FlaminAnimations
Purple Cab! KONE Hydraulic Elevator (E2)-Friendship Warehouse, Pleasant City
by WashingtonMetroFan
Ikura sushi|secret staycation OMG HI
by secretstaycation23
random band on ucbb
by mars_2015
Numberblocks Piratasthophe but it goes to 1,000,000 remix remix
by NoeyT13
Numberblocks Generator but with + and - 37 and 51
by ilike37fave51
青の塔EX
by sakaryuu
beat up ugly thing
by diamondc2008
Poppy playtime 3D version chapter 1-2 #game
by nikfd
100% Pen/ 1 dot Calculator #All#Games
by Yathaarthp
TVOKids Logo Bloopers 4 Take 14: 20 Bloopers at once? SUPER DUPER BLOOPER MADNESS!!!!!! remix
by adewumio
Testing endless Greek
by Ping_au_ipad_Channel
AY black hole But Added Pocoyo & Game Over Goanimate remix-4
by JojosWorld32
PR!ink!sans fight phase1~3 [undertale fun game]
by I---program-studio
(AYS) BITE V3
by SomeWinterGuy
Mii Channel
by snowwhitepinocchio
World of Interactive Friends Bossfight
by ChermayeffTesting
Angryblocks Band 2 (Uncannyblocks Band 19b) (My Take)
by NFGMyles