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

Designs, Argam system, and more...

by Quoot105

Project thumbnail
View Project

Numbers Band 76

by kuyakusgab

Project thumbnail
View Project

Talking Ginger 2 remix

by AvaDeruyter

Project thumbnail
View Project

UPDATE talking tom and ben news 9 V4 aded all hd remix remix-4 remix remix-6

by bonzi346

Project thumbnail
View Project

Magic Tiles 3

by Mic_short

Project thumbnail
View Project

Ethereal Lunchtime (Full Song)

by swapswap_disbelief

Project thumbnail
View Project

take care of c00lkidd!

by kik_ival

Project thumbnail
View Project

Beat Up P-Head 2 remix

by xmrrileyxx

Project thumbnail
View Project

Roaring Knight fight

by imaperson5558

Project thumbnail
View Project

-Trinity Encore-rewrite appears up (FNF VS Rewrite)

by uliseS_leonard

Project thumbnail
View Project

Sonidos de Windows XP

by Mr_Supermole

Project thumbnail
View Project

Baldi basics (Demo)

by OliverCarvalho2024

Project thumbnail
View Project

Endless Ukrainian Letters (baldi9845's take)

by Nachosun1403

Project thumbnail
View Project

Stingy text to speech

by Jennifertest

Project thumbnail
View Project

(FINISHED) Mixels Intro S3 Remake remix remix

by NV0810

Project thumbnail
View Project

The Longest and Ultimate Blue Mist Plus Jumpscares Collection (Part 1B)

by carterlee30

Project thumbnail
View Project

Power outage | #Animations Entry for 2k contest

by -ToutburgetTv-

Project thumbnail
View Project

My Singing Monsters: Water Island

by mysinginmonsters

Project thumbnail
View Project

new button for beat up games

by BASE098

Project thumbnail
View Project

Beat up talking ben Full

by newmyles

Project thumbnail
View Project

beat up xbox 630

by Diddyer78

Project thumbnail
View Project

Minute Number Evolution 2 [ 471 β†’ 512 ]

by 13TVtilefrom2048

Project thumbnail
View Project

γƒγƒŠγ‚Ώγƒ - ζ–‡ε­—pvοΌ†γ‚Ήγ‚―γƒͺγƒ—γƒˆζΌ”ε₯ [pvε€§δΌšε‚εŠ δ½œε“]γ€€γ€€γ€€#Laiboo

by laiboo

Project thumbnail
View Project

kick the buddy

by Malafries