thinkinmonkey Posted August 3, 2018 Share Posted August 3, 2018 Hello all, I need to know if it's possible with Babylon recreating this fx of a piece of wood burning. I'm thinking of one PBR shaders and then mixing two different couples of textures, one for normal wood and one for burnt wood, so a couple for albedo, a couple for metalness, a couple for roughness, everything driven by a second UV where V is for going from one state to the other one. Do you think is it possible? Here is a test with Blender/Cycle: Thank you Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2018 Share Posted August 3, 2018 Yeah this is basically a MergeMaterial. We don't have it out of the box. You can probably fake it by using two identical meshes. One with wood and an opacity map to make it disapear in favor of the second one with Burnt wood Quote Link to comment Share on other sites More sharing options...
thinkinmonkey Posted August 4, 2018 Author Share Posted August 4, 2018 Hi Deltakosh, so, my first question is: anyway I can animate UVs and drive the opacity of an object, right? Second question: is it possible to work with Glsl? Maybe it could give me a chance. Thank you. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 6, 2018 Share Posted August 6, 2018 You can animate UV with texture.uScale/vScale/uOffset/vOffset properties You can animate obejct opacity with mesh.visibility (between 0 and 1) You can also directly work with glsl through the ShaderMaterial: http://doc.babylonjs.com/how_to/shader_material Quote Link to comment Share on other sites More sharing options...
thinkinmonkey Posted August 6, 2018 Author Share Posted August 6, 2018 Ok, thank you a lot, that's what I was looking for, I'll investigate more. Thank you. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 6, 2018 Share Posted August 6, 2018 https://www.babylonjs-playground.com/#DBJGBL https://www.babylonjs-playground.com/#DBJGBL#1 This should give you an idea, there are a few ways to do this though. Just so you know, Chimps are apes... Quote Link to comment Share on other sites More sharing options...
thinkinmonkey Posted August 6, 2018 Author Share Posted August 6, 2018 Ahahahah! Thank you, Pryme8, that's what I'm looking for. Bananas to you! Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2018 Share Posted August 7, 2018 Flagging the topic as solved 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.