I want to know how to achieve light lines changes on the body of a car when it is in motion
The colorful light reflected by the car body?
-
uv动画,准备一个Mesh覆盖在车表面,光线流动所在的面,准备张光线的png纹理,使用shader移动纹理。
-
instanceMesh,用面条状的实体的线,规划好线的路径,然后用bezier曲线去计算位置,类似于tailline那种手动控制。
-
UV animation, prepare a mesh to cover the surface of the car, the surface where the light flows, prepare a png texture of the light, and use a shader to move the texture.
-
instanceMesh, use the lines of a noodle shaped entity to plan the path of the lines, and then use a bezier curve to calculate the position, similar to the manual control of a tailline.
The first and second “longpress effects” can be achieved through UV animation, and the last two effects need shader,I think
鼠标按下去的时候车身的光线变化,有没有可能是cubemap 的运动,然后车身本身发射cubemap产生的效果?
因为除了车身,轮胎以及其它有反射的地方都有光的变化
Is it possible that it is the movement of cubemap?Vehicle reflection
That is reflection probe, he use a 6 capture to generate a dynamic CubeTexture.
那个效果是反射探针,用六张截图生成了一张动态的CubeTexture。你可以看看这个doc
https://doc.babylonjs.com/features/featuresDeepDive/environment/reflectionProbes
Thank you master