kenny__84 Posted October 24, 2018 Share Posted October 24, 2018 Hi there I'm trying to export to gltf with an emmision map and a AO map on channel 2, I have the normal texture mapped on channel 1. When I open the GLTF it seems to only map the emission map to channel 1, though it is set to use channel 2. Is this something to change on all the models, or should it be able to map to channel 2? Thanks! Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 24, 2018 Share Posted October 24, 2018 Ping @kcoley Quote Link to comment Share on other sites More sharing options...
kcoley Posted October 24, 2018 Share Posted October 24, 2018 Hi @kenny__84 do you have a sample glTF file or Max scene? Btw, glTF maps from index 0, so 0 is considered channel 1, and 1 is considered channel 2. Quote Link to comment Share on other sites More sharing options...
kenny__84 Posted October 24, 2018 Author Share Posted October 24, 2018 Here is the testscene I have tested this with the exporter and when I open it in babylonJS it works fine, the problem is when opening this in threeJS, then the texture of the emissionmap is tiled like channel1. TestScene.zip Quote Link to comment Share on other sites More sharing options...
kcoley Posted October 25, 2018 Share Posted October 25, 2018 Hi @kenny__84 it looks like the glTF file you provided is valid. Though this may be an issue with three.js not able to handle channel 1 of texture coordinates. Perhaps you can flag this issue with them? Quote Link to comment Share on other sites More sharing options...
kenny__84 Posted October 25, 2018 Author Share Posted October 25, 2018 Okay thanks for looking into this. 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.