Skip to content
0:00 / 0:00

#perspectivecorrecttexturing#depthbuffer#rasterization

Code-It-Yourself! 3D Graphics Engine Part #4 - Texturing & Depth Buffers

javidx9

332K subscribers • 7 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2022 to 2026.
  • Presented by javidx9
  • Linked in the descriptionOneLoneCoder/Javidx9

Intermediate. Assumes working knowledge.

204K views8 years ago2 recommendations

Graphics and audioSystems programmingRenderingBuilding a game engineC++

javidx9 demonstrates how to implement perspective correct texture mapping, scan-line triangle rasterization, and depth buffers in a custom C++ 3D engine.

By popular request I decided to have a go at implementing texturing in my command prompt 3D engine. I'm quite pleased with the results! This video shows perspective correct texture sampling, scan-line triangle rasterizing and depth buffers. Source: github.com/OneLoneCoder/Javidx9/tree/master/ConsoleGameEngin… discord.gg/WhwHUMV Blog: onelonecoder.com Twitter: @javidx9 Twitch: javidx9

Why it's here

2 people recommend this

What people say. Recommended as a helpful guide for understanding perspective-correct texture interpolation and rasterization in custom software renderers.

Moments people linked to

u/andrewlim2022in r/GraphicsProgramming • Recommends

On “Affine vs Perspective Correct Texture Mapping (Vanilla JavaScript)”

This video helped me get my head around it
3View on Reddit

u/Otherwise-Pear2054in r/GraphicsProgramming • Recommends

Perspective-correct interpolation only works for some faces of a cube Hi, is the guy from the raylib renderer again. These last days i was trying to implement texture mapping on the renderer i am making, but i cant get the perspective-correct interpolation to work. I tried first with the method described in scratchapixel, but it didnt work at all, then i tried with the method of this video, and it only works for some faces of a cube, but the rest of faces are not only distorted but the texture is still mapped like i was doing affine mapping: 2 of the faces that have the problem One face is rendered correctly while in the other the texture gets squished The thing that confuses me is tha…