Background panorama should be turned into a UV-mapped cube instead of separate faces #4

Closed
opened 2022-08-06 16:37:32 +02:00 by Ghost · 0 comments
Ghost commented 2022-08-06 16:37:32 +02:00 (Migrated from git.fasguy.net)

The cube for the panorama currently consists of six individual faces, each with their own individual textures.
The panorama image sides are all part of a single image, to reduce the amount of requests and loading times.
With the current cube system, this image then needs to be split up back into individual images and applied to the corresponding cube faces.
This is a total waste of resources. Instead a UV map could be used to apply the single big image directly to the cube.
Unfortunately i don't know enough about WebGL to get this to work properly and i don't want to use something like three.js just for a cubemap panorama.

The cube for the panorama currently consists of six individual faces, each with their own individual textures. The panorama image sides are all part of a single image, to reduce the amount of requests and loading times. With the current cube system, this image then needs to be split up back into individual images and applied to the corresponding cube faces. This is a total waste of resources. Instead a UV map could be used to apply the single big image directly to the cube. Unfortunately i don't know enough about WebGL to get this to work properly and i don't want to use something like three.js just for a cubemap panorama.
Sign in to join this conversation.
No description provided.