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
A Block and a Hard Place [BETA TESTING] coa's witherstorm
by coa545465
The Hotel - Doors Floor 1 (UNFINISHED)
by gamercreatorpro
Abgerny 2 but sprunki (V3.5).
by Scratcherepicman
Numberblocks Band ReTrillion Remastered (0.5M-10.0Dec)
by Calebv1223
[2] THE LAST PIPE v1.1
by davroda
scene 1 story board 3
by CircleBasic
sprunksters final update
by thesongcopy
Bfb intro
by 1spaCe2dinOs
Preview 2 Scratch Cat in X Major 1+G Major 4
by TKTOT2025
Steven Universe - Create Your Character
by cartoonnetwork
random animation (10 min arcade)
by Audrick323
宇宙突戦争 Space War シューティング ver1.6
by gamepg
Which Way Does The Water Flow?
by stopmotionpenguin
MSMAOA 0.9.9 prerelease 1!
by jack8547
Endless alphabet C-2 - CELEBRATE
by Roseor
Nothing found XD
by Luchim15
Beat Up E-200 remix
by TFXintheScratch
NickNack: Christmas Fools remix
by Boizam364
(MOST VIEWED VIDEO) Cat Leopold Says Klasky Csupo Effects 2 in Chorded into G Major
by JPPORTUGAL
Wither Storm Simulator 2 remix-10 remix remix
by blakanorus
Super Why! End Credits Season 3 Fixed Again
by sankevind
Talking Tom Cat 2 V1.2
by _-_ThomasTrain_-_
Bren319's Russian Alphabet Lore 3.0 Request
by bazaustin
3DBB!HYPER Dust(but playable)
by amongusman33