b3dUVMapSpherical

Applies spherical UV mapping using longitude/latitude projection with seam fixing. Takes mesh (surface-based mesh entity). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int

Returns

Void

Quick Summary

Applies spherical UV mapping using longitude/latitude projection with seam fixing. Takes mesh (surface-based mesh entity). Returns nothing.

Technical Exegesis...

Applies spherical UV mapping using longitude/latitude projection with seam fixing. Takes mesh (surface-based mesh entity). Returns nothing. Validates mesh exists, type is ENTITY_MESH, surface-based, and locked. First pass: for each vertex, normalizes position to unit direction (nx, ny, nz = position/length). Calculates longitude U = (atan2(nz, nx)/PI + 1) * 0.5 (wraps around equator, 0-1 range). Calculates latitude V = 0.5 - asin(ny)/PI (pole-to-pole, 0-1 range).

Example

Example.bam
; No example implemented yet