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
Beat up Edward DLC remix-5
by BEAT2022
My second day
by APrincessImagination
Paper Minecraft ep1
by ssme1347
Sprunki Retake TADC mod
by skyguy0011
Make Your Own BFDIA But The Teams Are For Episode 1-4 Instead of Episode 5-9
by Vibes_is_better
Meme Sounds '
by LadyJags306
Rainbow Numbers 0 to 200000 (Part 1 of Numbers 0 to 1000000) remix
by goodall4050
Google Doodle Baseball 2.0
by gonzado123
Minecraft 1.12: World of Color
by Wildfire_the_dragon
sprunki bobi
by Bodkamelonik
S_C_R_A_P_P_E_D FNATI Extras part 2
by Aleatorio21
Windows 10 Simulator V2 remix
by misha3223
[U.F.#143]: Nicktoons Blob Man
by DaBagelODoom
Sonic the Hedgehog 2: Special Stage (WIP)
by TTTEfanSQB
SIGMA MRL Carpark Elevator
by jc401400
Famitracker Synthesizer
by Kouzeru
jsab - level editor Ver . 2.1.0 β
by osatoudaisukich
Opening to Happy Tree Friends Fanon: Standing Out 2014 DVD remix
by Lainmb
Add yourself running away from the wither storm!!! (old) remix
by cwknathaniel59216
Give me an OC and i'll make it as a beat up X button! remix remix-4
by bartolomai
Tower Defense Game talking news tom and ben
by scratchwosjwufpos0
Beat up Edward 2 remix
by PuppyAllLive
The Black Hole (Add Round 8) remix-134 (1000 Projects!)
by earlham11
skully papercraft
by gulkd2023