Adrian3D Posted August 17, 2018 Share Posted August 17, 2018 Hello Babylon community, When using the BABYLON.GLTF2Export feature, I noticed that textures I mirror horizontally (via diffuseTexture.vScale = -1) do not change the glTF export as desired. Is this a known / accepted limitation or is there a misunderstanding from my side? Also any workaround is appreciated (so far I mirror the texture again manually after exporting them). Here a playground example to illustrate the problem: http://www.babylonjs-playground.com/#1GXSPK#17 Uncomment line #11 ( = // oStandardMaterialHightlighter.diffuseTexture.vScale = -1;) and compare the export results. Any help is appreciated (pinning @kcoley as you helped me so greatly last time) Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 18, 2018 Share Posted August 18, 2018 pinging @kcoley Quote Link to comment Share on other sites More sharing options...
kcoley Posted August 19, 2018 Share Posted August 19, 2018 Hi @Adrian3D! Currently the glTF exporter does not look at the vScale property, but I'll add that feature in. I plan on having it implemented by the end of the week. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 19, 2018 Share Posted August 19, 2018 Thanks @kcoley Quote Link to comment Share on other sites More sharing options...
Adrian3D Posted August 21, 2018 Author Share Posted August 21, 2018 > but I'll add that feature in. I plan on having it implemented by the end of the week. Great. Thank you for that. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 21, 2018 Share Posted August 21, 2018 Github issue is available here for follow up: https://github.com/BabylonJS/Babylon.js/issues/4974 Quote Link to comment Share on other sites More sharing options...
kcoley Posted August 27, 2018 Share Posted August 27, 2018 @Adrian3D fyi, I am implementing the KHR_texture_transform with fallback behavior to handle your use case of scaling the v parameter, though implementing the architecture for extensions in the exporter took a bit of time. I should be ready for a PR within a day or two. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
kcoley Posted September 10, 2018 Share Posted September 10, 2018 @Adrian3D it took much longer than expected, but you should now be able to serialize uScale, vScale, and other texture transform properties to glTF. The original texture will be modified on serialization. Let me know if that works for you. Quote Link to comment Share on other sites More sharing options...
Adrian3D Posted September 19, 2018 Author Share Posted September 19, 2018 @kcoley Thank you so much. I can confirm: It looks correct now. Awesome! ? Sebavan 1 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.