NinjaMark Posted February 1, 2017 Share Posted February 1, 2017 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. julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 1, 2017 Share Posted February 1, 2017 Ping @Luaacro julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted February 3, 2017 Share Posted February 3, 2017 Hi @NinjaPigeon, I'll find a solution to avoid theses problems with invertY. I come back with news asap Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted February 8, 2017 Share Posted February 8, 2017 The pull request is available here https://github.com/BabylonJS/Babylon.js/pull/1757 Let me know if it's ok for you. Thanks ! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
NinjaMark Posted February 13, 2017 Author Share Posted February 13, 2017 Works for me, thanks @Luaacro ! julien-moreau and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.