Game Engine Programming 027.1 - Procedurally generated UV Sphere | C++ Game Engine

Опубликовано: 11 Март 2026
на канале: Game Engine Series
2,961
76

Today I'd like to add a new type of primitive mesh to the geometry pipeline, which is a UV sphere. I think this is an interesting exercise to also more thoroughly test the geometry routines. In the first part of this new episode, I'll write the code that will generate the mesh for the UV sphere and in the second part I'll compute the UV coordinates for the sphere and display it in the geometry viewer.
(Red Episode)

Support Game Engine Series:   / gameengineseries  
Discord:   / discord  

Big thanks to my patrons:
--- shaman ---
Eearslya Sleiarion
Michael McMahon

00:00 - intro
00:50 - some code clean-up
02:15 - enabling XAML hot reload
05:13 - start writing create_uv_sphere() function
05:55 - explain properties of the uv sphere
07:17 - generating vertices
15:17 - computing indices
22:46 - add WPF controls to set the uv sphere parameters
28:25 - finish computing indices

keywords: mesh, geometry, vertices, asset pipeline, uv sphere

by Arash Khatami
-------------------------------------------------------------
#PrimalEngine #GameEngineSeries #GameEngineProgramming #TheGameEngineProgrammingSeries