efxlab Posted February 8, 2018 Share Posted February 8, 2018 Hello, I'd would like access to any mesh through my loader for change a texture map , but the log output 2 times the same model : https://bin.fuelphp.com/snippet/view/OJ Is it my script which run 2 times or what version I should use ? Quote Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2018 Share Posted February 9, 2018 Can you make sure the model does not contain twice the same mesh? Pinging @bghgary FYI Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 9, 2018 Author Share Posted February 9, 2018 ok @Deltakosh I guess I can verify that via debugLayer.show() ... I take a look... I see one model but there is an hierarchy, it was not created by me in code but by glTF loader. Quote Link to comment Share on other sites More sharing options...
bghgary Posted February 9, 2018 Share Posted February 9, 2018 @efxlab Can you attach the glTF asset? Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 9, 2018 Author Share Posted February 9, 2018 here, thanks @bghgary Maya_sitting_girl.gltf Quote Link to comment Share on other sites More sharing options...
bghgary Posted February 9, 2018 Share Posted February 9, 2018 It is clear from the glTF that you have two nodes with the same name. What you are seeing is expected given the asset you are loading. "nodes": [ { "children": [ 1 ], "name": "root", "scale": [ 5.5244216918945312, 5.5244216918945312, 5.5244216918945312 ], "translation": [ -0.083208322525024414, 5.5995340347290039, 0.41681909561157227 ] }, { "children": [ 2 ], "name": "girl_sitting_Low" }, { "mesh": 0, "name": "girl_sitting_Low" } ] Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 9, 2018 Author Share Posted February 9, 2018 oh @bghgary you are the man ! I have not touched or generated this file, it was created by Substance Designer Painter export module. I will post to the plugin developper this issue. Like its a Json, its easy now to fix it thanks Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 9, 2018 Author Share Posted February 9, 2018 @bghgary I juste removed : { "children": [ 2 ], "name": "girl_sitting_Low" }, Now I have in log : root and girl_sitting_Low only 1 time. do you think its ok now or root should be removed ? Quote Link to comment Share on other sites More sharing options...
bghgary Posted February 9, 2018 Share Posted February 9, 2018 @efxlab This is up to you. efxlab 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.