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
SMPS: Track Star (Mario Party DS) (Rivals Version)
by isaiahandrews07
Beat up Nano v.3.0
by jakubko2010
CLASSSIC PLATFORMER
by CYBER_2016
Numberblocks Band 131-140 (V2)
by benja_22A
Beat up Belle 1.4 remix
by WalFan13BoxinScratch
Hot Animation/HiT Entertainment (2007) remix remix
by jjones27026
Numbers 1 to 10000 with Xtra Font
by rizqiuwais
Secret Staycation Run
by supereagle153
My DVD collection so far
by KicketyTheKickBall
【創作譜面】クロートーと星の観測者
by -pte-
peak scratch 2.0 game
by gabriel_carmovip
5
by _birb-alertt_
Endless Music Maker - Twinkle Twinkle in A Major
by chrisdberry
Number decimals band episode 10: 3-4
by marques_k_provost
Hilbert curve 1920x1920 order 10
by M2KPRO
さいたま2000 (太鼓の達人)
by Kuppi-scratch
ふわふわ、転がれ!|Fluffy, Roll !
by Moko-Fuwa
Higher or Lower? - A Mobile Card Game
by bgvikings08
Cookie Run - Dark Enchantress Cookie Boss Battle (Cookie Run Kingdom)
by FireMayro
Geometry Dash Silent Sonic Wave/Silent Circles Wave Challenge
by wallyt12
DinoWorld V1
by -yeldarbnivot-
09noahjohn Nineparison (reupload)
by calebcohenour
RED ZONE(スクリプト演奏)-2
by rikadaisukinahito
Scratch RPS v0.1
by Wildmonk-2