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
Talking Baby Hippo 1.6.6
by Maxi1303a
deck figures ep 3 personality society
by 6lebs
hickory dickory
by 29BWsenior25
Nickelodeon Creatures Text Engine 6.0 remix
by SebbieSebSeb
Pacman
by Scratch_Gamer_Girl1
koneaki3と対処法シリーズの小ネタ集
by taiyaki1010
colorblocks but in roblox (colorblocks rp) remix
by lord_gideon
Trinity Encore but Tsumugi Sings It
by GameCole123
Scratch Tidal Wave Fixed
by Mynameismilton
Columbia misbehaves at The Family Fun Center on HiT Cube's Birthday/GROUNDED!
by Minko1234
Angry Birds 2 1.6
by abc08957
Talking Tom and Ben News: hey duggee edition
by -fungaming879_
piano madness logo if it was on spotify
by sammygoodzombie
ROBERT-dragon
by TeenSummit2006
The Studio Doors of Numbers I - Part II (162 Doors)
by 100daysonly
Don't Get Zapped!
by PugNationsCoding
beat up scratch cat V1.6 remix
by Vad2014
Ball shoot ver1.0.0
by 123shun3
ローリングスカイ・9
by nihon2020
Beat up Edward [1] remix-2
by hyd3ns33k
Ultra Numberblocks Night 2020 Plus (Fan Made) (Radicaly Update) remix
by Dejvid2115
click the only button to beat up cat!
by tatatino150
Super Mario Bros 3 Scratch Edition remix
by stulive1004
Samsung galaxy S4 English (Android)
by realfardine