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
Template(Beat up Louie) remix
by jayjayy1809
Help_tale Sanstrocity Fight Theme
by File-ScratchUser_win
Baldi's Basics 2 Null style
by STARTFROMSCRATH
Endless alphabet OC QUOLL
by splashyideas
Endless Music Builder Reupload (MOST VIEWED PROJECT)
by JaydenGamerzTube
Incredibox - Sprunki Sinner Rick Roll Edition
by dell456yusuf
✧ v1.8 Upd. 2.4 | Five Nights At Freddy’s 1; Fredbears-Official | #FNA #horror #game ✧ remix
by alexruizpro
Beat-up-Zazorah reboot
by pmz34
Aidan's Maths 0.0.8
by Me222229
WiiCalc (remix of Scientific Calculator)
by Sierra11
Sprunki Oc Real
by TheNightz_
Minecraft 3D
by _Raytracing_Archive_
Beat Up Evil JMF707_OSC (5)
by anthonyfao
Paper Minecraft 1.20 Ultimate Edition EN
by tomo_piyo
Geometry Dash End of Line
by iPhone_ATT_TWC115
Klasky Csupo Nickeldeon 1993 RARE!
by anthonymuffin
One night at Gru Extended
by gru-with-fun
Beat Up Spongy [BFDI] Beta v2.3
by kbhg1234
Klasky Csupo Effects #1 part 1
by scratchfan0206
mighty eagle test
by umaquial
Windows 11 22H2 Simulator
by martinkober
ScratchHead 0.7 Part 2 (V1)
by 20105118
iPhone 11 Simulator iOS 12
by anon_unknown
Wither Storm Evolution 19 remix
by blakanorus