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

Beat Up X Button

by crazycrazybaby17

Project thumbnail
View Project

IPH5's Shidinn Alphabet Lore

by insert-profile-here5

Project thumbnail
View Project

Beat Up Klasky Csupo! remix remix remix remix remix

by kubakoodziejczak

Project thumbnail
View Project

Sunnder and dusty saying mean stuff to Kiki and Bouba and starts to apologize to Kiki and Bouba.

by LydiaFoofa

Project thumbnail
View Project

Demon Vortex(All Pen) remix

by hwaJackson

Project thumbnail
View Project

Sprunki Bonus 2

by TheNightz_

Project thumbnail
View Project

Nickelodeon Creatures spell a game I made

by siddharth1717

Project thumbnail
View Project

Animation! with your Stylized tunner but...

by greytobeyall

Project thumbnail
View Project

[AYS] One Bounce (DIE OF DEATH)

by facerig_rig

Project thumbnail
View Project

爆笑短編アニメ #1041 人のものを勝手に取る奴

by ahun0918

Project thumbnail
View Project

I FINALLY GOT SHADOW MILK COOKIE!

by -Midnight-The-Wolf-

Project thumbnail
View Project

Black Hole bfdi sound

by Whenis2027

Project thumbnail
View Project

BEAT UP REPTLOW!!!

by coche60

Project thumbnail
View Project

Draw: The Platformer Level Editor

by Mrk20200

Project thumbnail
View Project

Beat Up Scratchy! added 2 more buttons

by DogDvd

Project thumbnail
View Project

Beat Up Scratch 3.0 (Added Ice) remix

by CLAX1212

Project thumbnail
View Project

Beat up Hammer Mario 3: Add a button edition [1]

by ismiiboy

Project thumbnail
View Project

Wii (MOST VIEWED PROJECT)

by gannongamescom

Project thumbnail
View Project

Fidget spinner

by Amityblue2022

Project thumbnail
View Project

ネプリーグ プレッシャークロック

by daisuke225

Project thumbnail
View Project

Angry Birds Lite

by Bob-Friend

Project thumbnail
View Project

Beat Up Scratch Cat 2.0 Chromebook Edition

by dfg287

Project thumbnail
View Project

The Longest Platformer ever- KAIZO edition

by LVgaming

Project thumbnail
View Project

tiny11 (Windows 11 Lite) 22H2 64-bit (NEW APP)

by logoalec