levere Posted April 11, 2017 Share Posted April 11, 2017 Based on the MultiMaterial example here, I have created a simple playground demo that, after fully loaded and running, attempts to either change the diffuseTexture of a MultiMaterial's sub-material or replace a sub-material with a new one. Neither appear to successfully load and render the newly created texture, though changing diffuseColor does have an effect. Am I missing a step or is this a bug? http://babylonjs-playground.com/#3HGJ5Y#2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 11, 2017 Share Posted April 11, 2017 Works for me here: http://babylonjs-playground.com/#3HGJ5Y#1 Quote Link to comment Share on other sites More sharing options...
levere Posted April 11, 2017 Author Share Posted April 11, 2017 Try commenting out line 52 and try it again. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 11, 2017 Share Posted April 11, 2017 Oh sorry...It was a bug..fixed now Quote Link to comment Share on other sites More sharing options...
levere Posted April 12, 2017 Author Share Posted April 12, 2017 Great, thanks. That does take care of the diffuseTexture assignment on an existing sub-material, but what about the case where I'm re-assigning a sub-material to a new one, prior to the diffuseTexture assignment (run again and hit the 'm' key)? The color change is still caught and reflected properly, but not the texture assignment. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 12, 2017 Share Posted April 12, 2017 Ok still a sneaky bug.. let me fix it Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 12, 2017 Share Posted April 12, 2017 Fixed Quote Link to comment Share on other sites More sharing options...
levere Posted April 12, 2017 Author Share Posted April 12, 2017 Excellent. Thanks! 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.