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
Grief But Balanced remix
by wenjurry
Zombie Survival V2.3 (Reworked Mobile Update)
by FlaminDragon500
Free DVD Menu Template remix
by VETRIXisback
Endless Music remix
by jade101717jade
Numbers 1 to 500 In 500 Fonts (My Version) (FINAL PART) remix
by rizqiuwais
Make your own BFB worst to best remix remix
by GmodCreeper12
We Are Champions - Team Doki
by pinkkyjae
Seadtype V12.7
by StefanLovesAlphabets
Car Anatomy² Camaro SS 69'
by SLCValentinB
Escape cat (hard mode is being updated yay :3)
by taecatdo
Incredibox - Sprunki sinner edition
by extremeWorld_scratch
NGG+ S1 EP2: Nano's First Day Of High School
by Raph12334
scratch 4.0
by tinathemagnificent88
[VECTOR] Pogo logo
by LogoEditorFan
Getting over it
by Rigil_Kentaurus
Argam Clock
by Interkey
Desert Run / 砂漠レース
by pandakun
Beat Up Scratch Cat 3 hacked
by Wheotley
部屋からの脱出ver1.4
by okasinaokasii
KyleWare: Ultimate Microgames 2!: Album - How It Works v2
by MTVWorld
Nonogram
by codeGIO
this mailbox is yum
by xvs139
Elmo's World: Singing, Drawing and Telephones! (2002 Version)
by Deshaun4168214
WingDings TextEngine v3 easy to use
by Jupitersaturn13