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

Talking Tom & Ben News 2.5

by supermanjayvier2011

Project thumbnail
View Project

kassuntale Gγƒ«γƒΌγƒˆ γ‹γ£γ™γ‚“ζˆ¦

by Scratchsun-0610

Project thumbnail
View Project

Windows 11.EXE Buttons H But Becky And Cally wanna see

by Iamsweet25

Project thumbnail
View Project

Endless Arabic fixed

by NumberjackFan2024

Project thumbnail
View Project

Beat Up Bonzi Buddy: DEFINITE EDITION ADD ATTACKS! remix remix remix remix remix remix remix

by jacejim1809

Project thumbnail
View Project

Spiffy pictures Exe Logo but TF! styled.

by JoshuaTorres30

Project thumbnail
View Project

Testing Punishment remix remix

by M0nm0n

Project thumbnail
View Project

Universe Sandbox 2D Scratch Edition (WIP)

by FnfBros211

Project thumbnail
View Project

EMOJI

by IANHS2024

Project thumbnail
View Project

AYS: Hai Yorokonde

by supica-0325c

Project thumbnail
View Project

SUPER HARDMODE!Sans

by Eli333GD

Project thumbnail
View Project

SONIC BEAST 3

by zarkourban

Project thumbnail
View Project

Cat-tracer

by Bluestribute5

Project thumbnail
View Project

Numbericons

by universeissy

Project thumbnail
View Project

Fidget Spinner V1.0.6 [OFFICAL]

by UltraGamer969

Project thumbnail
View Project

Abc Song for AaronLeABC123 And DFRstudio

by Angel45eci

Project thumbnail
View Project

θ‡ͺδ½œηŸ­η·¨γ‚’γƒ‹γƒ‘ε€§ζ™¦ζ—₯0.1ζ™‚ι–“SP!!γ€Œ2021εΉ΄η΄…η™½γ‚’γƒ‹εˆζˆ¦γ€#δ»ŠεΉ΄γ‚‚δΈ€εΉ΄γ‚γ‚ŠγŒγ¨γ†γ”γ–γ„γΎγ—γŸοΌ

by usao-naoki

Project thumbnail
View Project

intoro作ってみた...!

by aisu-teo

Project thumbnail
View Project

BONZIWORLD RAID

by Alexik7

Project thumbnail
View Project

Beat up remix remix remix remix

by f45rtygt5

Project thumbnail
View Project

Ultimate Numberblocks Night Infinity

by ioneric

Project thumbnail
View Project

Egg das

by ibai-u

Project thumbnail
View Project

The jeehutanic stickmin homepage

by NoobiumBaconate

Project thumbnail
View Project

AY: Beat up C1 (Remix 6)

by Yellow_Marshello40_2