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

UPDATE talking tom and ben news 9 V4 added all hd remix remix-4 remix remix-2

by everton_trader

Project thumbnail
View Project

Beat Up Edward DLC Pemix remix

by everton_trader

Project thumbnail
View Project

Tatar alphabet lore 1.2

by diana038

Project thumbnail
View Project

Numbericons 1-2000

by cree-numberblocks

Project thumbnail
View Project

DVD run

by ElKu3005

Project thumbnail
View Project

Beat Up Brigid remix

by jacejimerson7

Project thumbnail
View Project

???

by snake7402

Project thumbnail
View Project

Channel 4 Logos (2023)

by JaceBFDIfan2021

Project thumbnail
View Project

Talking Oren Alien

by Flagbandandredsigns

Project thumbnail
View Project

/Cookie clicker/

by Pr0_G4M3R_robot

Project thumbnail
View Project

Here is it, and Don't give me E Notes now.

by minecrafter289

Project thumbnail
View Project

AOT Defence

by ninjafish007

Project thumbnail
View Project

Five Nights at Freddy's 4 FULL GAME

by limbs7

Project thumbnail
View Project

Playkids Band 4 (Remake)

by SharkyBlues3rd

Project thumbnail
View Project

Beat up Bonzi Buddy (for fun) V1.0 remix

by 347225

Project thumbnail
View Project

ねこの魔法転生での新生活season2 #9 特殊能力

by vanisumi0703

Project thumbnail
View Project

SAMMY'S: Performance Demo (2022) | #games #demo #5 #nights #freddy #fnaf #horror

by OkSoBasically_07

Project thumbnail
View Project

Snowboarding Ice Cube

by BarryFans

Project thumbnail
View Project

BFB Contestant Generating Game But Its Done For You remix

by Willetti

Project thumbnail
View Project

Scratch City remix

by MelodyPlayzYT

Project thumbnail
View Project

Beat up 2 remix

by sgtshep2023

Project thumbnail
View Project

Jemel's JumpStart Numbers Band [Individuals / 2024 Version] Part 1 | Numbers 1 ~ 20

by jemellyles03

Project thumbnail
View Project

HPRC with more chCACAaracters! remix remix

by eland_animation

Project thumbnail
View Project

My interactive Spanish Alphabet Lore (Made by pook67)

by pook67