Lecture #7: Texturing

Computer graphics in Game development

Ivan Belyavtsev

25.01.2020

Texture coordinates

From: https://docs.microsoft.com/en-us/windows/win32/direct3d9/texture-coordinates [1]

Texture coordinates in Wavefron OBJ

  • vt - texture coordinates
  • per vertex data [2]

Texel to screen space mapping

Use barycentric coordinates

\[P(tex) = uA(tex)+vB(tex)+wC(tex)\] [3]

“Texturing” experiment

Deduction phase

  • How to use barycentrics to find texture coordinates
  • What about performance?

“Texturing” experiment

Experiment

Let’s implement it together

“Texturing” experiment

What is the new knowledge?

References

1. Satran M. Texture coordinates (direct3d 9) [Electronic resource]. 2018. URL: https://docs.microsoft.com/en-us/windows/win32/direct3d9/texture-coordinates.

2. Wavefront obj file format summary // FileFormat.Info.

3. Moreton H., Stam N. Turing texture space shading [Electronic resource]. 2018. URL: https://devblogs.nvidia.com/texture-space-shading/.