Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

GLTF Loader Inverted Textures

$
0
0

Hi,

I'm having some issues getting the GLTF File Loader working with the models I've been provided due to the option invertY is true by default in the construction of Textures (line 1335).

Looking at the GLTF spec, I'm not sure why this decision has been made as the suggestion is to not invert textures for WebGL runtimes:

Implementation Note: With WebGL API, the first pixel transferred from the TexImageSource (i.e., HTML Image object) to the WebGL implementation corresponds to the upper left corner of the source. Non-WebGL runtimes may need to flip Y axis to achieve correct texture rendering.

Based on this, should the default be changed to use invertY: false? Or at least allow the user to specify this themselves?

Edit - Also noted that this would remove the need for the expensive normalizeUVs method.


Viewing all articles
Browse latest Browse all 760

Trending Articles