However, when I try to apply albedoTexture (uncomment line 23 in the above playground) to make it a semi-transparent ball, I also had to enable linkRefractionWithTransparency (uncomment line 26) for the albedoTexture to take effect, but when I do that, the hole will be completely invisible which is not realistic. I tried to use opacityTexture as well (uncomment line 28 and 29) but it still did not produce the desired effect. I am new to BabylonJS and 3d modeling in general so trying to get some help from the experts here on how to properly do this.
Thank you very much, turning off backFaceCulling may help a little however I feel it looks more realistic if refraction is enabled, when refraction is disabled it does not look like a solid glass ball.
But the biggest question I have is, how can I apply albedoTexture to the ball and still be able to see the hole, even partially. Any thoughts?
I don’t know, I am quite new to BabylonJS as well and didn’t have time to try all the PBR settings. I am playing with your PG just right now to try them out. So I’ll learn something new and help a BabylonJS fella at the same time
If you export your NM from NME to js code you will see that the resulting code will contain lines setting these values.
Let me play with your PG for a while and I’ll get back to you asap. I am helping another lost soul just right now so it might take a while.
Actually I don’t rock I’m failing and failing to achieve what I want, but I am curious how to do this as you are so I will not give up… I hope so The glass and the surface cracks are easy but the cracks inside will need geometry inside the sphere. So I am trying to model something in Blender or I am thinking about creating the cracks dynamically in code. If I fail (I am not a Blender dude at all) I will code it and eventually I will fail in Blender I coded some lightning effects before so I could use and modify the existing algorithm to create the cracks.
Thank you, one key difference between this and the photo is that the ball in the photo does not really have any bumps. I tried earlier using opacityTexture instead of bumpTexture and this is as good as I could get: https://playground.babylonjs.com/#KJ2GLK#6
However as you can see the apparent issue is the albedoTexture is ignored in this case, if I link Refraction with Transparency by uncomment line 25, albedoTexture comes to effect but the hole becomes invisible. Any remedy at all to make both the albedoTexture and the hole visible at the same time?