wasabia / three_dart

three.js rewrite by Dart, Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.
MIT License
450 stars 80 forks source link

Flip Y in web (TextureLoader) #157

Open ert485 opened 8 months ago

ert485 commented 8 months ago

Setting TextureLoader.flipY had an effect in mobile apps, but had no effect web apps.

Also, texture loader defaults to flipY = false, while textures defaults to flipY = true. So I was having flipped images in web compared to what they looked like on iOS and android. So when I noticed flipY in the texture loader I tried that but it had no effect.


I would recommend removing flipY from TextureLoader - and recommend looking into a way to flip images on the GPU step rather than the image loading step. From what I can tell, the GPU step is how threeJS does it, and when it's in the loading step it's confusing that in some situations it flips while loading and others the flipping happens at a later step (web vs. mobile).