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
Lomando Ghosts as IR entities: 404san
by uhhhhhr
Samsung Galaxy S2 Boot Animation
by 19BM345739
イニクロの直感アニメ #104 - 超アニ 4th anniversary
by 1296-cat
*BLOX FRUITS*
by TresureStudios
the flying game
by mars_2015
【 Scratch Chat 】
by AceBidace
ʜᴏᴘᴘᴇʀ / #games #trending #all
by wolfofprogramming
Numbers 1 to 1 Quadrillion reupload
by aWEWENTSTG
Nickelodeon Teen in July 15th, 2025:
by Joseph_Griffin_Rises
fixing
by polterpickle
Geometry Dash v2.2 Cycles
by CrystalKeeper7
Super Boom Boom World. For Scratch™ v1.2.5 #All #Games #Art
by king8766
♬♪ 音感 - Sense of pitch ♪♬ Ver 1.11
by sousou_1125
Beat up Nano PLuS!
by superizaaqgalaxy
Json三分ハッキング ① 好きな名前のブロックを作る #tutorial
by Es-2
(Sulfurous Seas + Epic Hunter TOWER) Tower Defense Simulator | A Scratch Tower Defense game v.3.3
by HollowKnightGames
beat up Chuck From Angry Birds (Added Three & Hellbreaker Expunged)
by Kaizo_Kolors3333
DOOM: Invasion Mode - Super Mario Bros.
by Monafide
【 マイクラMOD 】 青が最強
by horiyouta
んおののころころ
by nnonono
KyleWare TWISTED (v4.0)
by Agurijsj
Kazakh interactive
by firefox_snowfox
er eats a plus gem remix remix remix remix
by Loredo16
Beat up Edward DLC Remastered remix
by tnwlss1013