Realtime Affine Texture Mapping (WIP) copy

Realtime Affine Texture Mapping (WIP) copy

by DCPU-16

๐Ÿ‘ 6,256 โค๏ธ 239 โญ 190 ๐Ÿ”„ 4
Created: May 30, 2013 Last modified: Jul 23, 2013 Shared: May 30, 2013

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

Project thumbnail
View Project

Nich doesn't like noisy guests (Fixed-Again)

by migdoraemon

Project thumbnail
View Project

Secret Staycation Apple (Music Player)

by sonic127389

Project thumbnail
View Project

Beat Up Luigi PLUS [Massive Update] with no intro. (Hayley Buttons) remix remix remix remix โ€ฆ remix

by kubakoodziejczak

Project thumbnail
View Project

Beat Up Bonzi Buddy REBOOTED

by bonzi346

Project thumbnail
View Project

ProgressBar95 on Scratch (REALLY BUGGY)

by 14a0-5w55

Project thumbnail
View Project

2,500 to 2,599 Jumpscares (Part 6 of Blue Mist Plus 2,000 All Jumpscares) remix remix

by Shaylag76

Project thumbnail
View Project

ใ‚ธใ‚ชใƒกใƒˆใƒชใƒผใƒ€ใƒƒใ‚ทใƒฅใ€€็Ÿขๅฐ็‰ˆใ€ใ‚ฆใ‚งใƒผใƒ–ใ€‘ใ€€

by mo-ri-wa-o

Project thumbnail
View Project

(FIXED) Beat up Gus remix remix

by matheusmaccamargo

Project thumbnail
View Project

Numberblocks - Intro (Jay Jay and Friends)

by cuzuco20Projects

Project thumbnail
View Project

Number block 11 Copyped Spinning around

by Axya18

Project thumbnail
View Project

Ascension

by happycatty

Project thumbnail
View Project

้’ใฎๅก”7้šŽ

by sakaryuu

Project thumbnail
View Project

1 million beanoss [numberblocks]

by Magicthomasastro

Project thumbnail
View Project

Windows Longhorn remix

by Andreabenj

Project thumbnail
View Project

OutSpare Sans Fight phase1~2

by Xx_Kimchi_xX

Project thumbnail
View Project

Give me an OC and i'll make it as a beat up X button! remix-4 remix

by bartolomai

Project thumbnail
View Project

HK boss engine

by BATTLE_STUDIO

Project thumbnail
View Project

(added stuff) Snow on Mount Silver remix

by _what_are_those_

Project thumbnail
View Project

Cenozoic Beast Size Comparison

by zippyzoomy

Project thumbnail
View Project

Super Mario Bros. ABEEG v0.1.2

by ABEEGTREE2

Project thumbnail
View Project

Deltashuffle - Emo Noelle lol

by boiboiboib024

Project thumbnail
View Project

Beat Up Mug (Battle For Phone!)

by dirtotheobjectrises

Project thumbnail
View Project

BFDI Balance Beam Randomizer+

by OrebCatSix941

Project thumbnail
View Project

Save cat life ! 1 (Normal mode)

by hkmlc151910