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
UPDATE talking tom and ben news 9 V4 added all hd remix remix-4 remix remix-2
by everton_trader
Beat Up Edward DLC Pemix remix
by everton_trader
Tatar alphabet lore 1.2
by diana038
Numbericons 1-2000
by cree-numberblocks
DVD run
by ElKu3005
Beat Up Brigid remix
by jacejimerson7
???
by snake7402
Channel 4 Logos (2023)
by JaceBFDIfan2021
Talking Oren Alien
by Flagbandandredsigns
/Cookie clicker/
by Pr0_G4M3R_robot
Here is it, and Don't give me E Notes now.
by minecrafter289
AOT Defence
by ninjafish007
Five Nights at Freddy's 4 FULL GAME
by limbs7
Playkids Band 4 (Remake)
by SharkyBlues3rd
Beat up Bonzi Buddy (for fun) V1.0 remix
by 347225
ねこの魔法転生での新生活season2 #9 特殊能力
by vanisumi0703
SAMMY'S: Performance Demo (2022) | #games #demo #5 #nights #freddy #fnaf #horror
by OkSoBasically_07
Snowboarding Ice Cube
by BarryFans
BFB Contestant Generating Game But Its Done For You remix
by Willetti
Scratch City remix
by MelodyPlayzYT
Beat up 2 remix
by sgtshep2023
Jemel's JumpStart Numbers Band [Individuals / 2024 Version] Part 1 | Numbers 1 ~ 20
by jemellyles03
HPRC with more chCACAaracters! remix remix
by eland_animation
My interactive Spanish Alphabet Lore (Made by pook67)
by pook67