i used translator
Hello, community.
I have reviewed many samples and experimented with various codes, but I have not made any progress, so I am seeking help.
This is my goal (designed in Blender).
- The central object should have a glass-like material that refracts the elements behind it (the current problem).
- The central object should rotate, but its shape should remain recognizable regardless of the angle.
I am currently in the testing phase to achieve the first goal.
Inside the checkered sphere is an object that is supposed to refract light like glass, affecting the objects behind it. Below is the method I found for object refraction.
const mainMaterial = new StandardMaterial("main", scene);
mainSphere.material = mainMaterial;
const probe = new ReflectionProbe("main", 512, scene);
probe.renderList.push(sphere);
probe.renderList.push(sphere3);
mainMaterial.diffuseColor = new Color3(1, 0.5, 0.5);
mainMaterial.refractionTexture = probe.cubeTexture;
The objects that are completely separate show light refraction, but the objects within (overlapping?) do not show light refraction.
I have uploaded a video. (The video above is my work, the one below is a sample)
The sample also fails to show light refraction when the objects merge.
Do I need to implement a water-like material to achieve what I want? (A material where both internal and external elements are visible through refraction?)
Thank you in advance, community.