VPN加速器

软件采用智能线路优化与全球服务器节点,可根据不同网络环境自动匹配优质连接线路,帮助提升网络访问效率,减少网络延迟,为网页浏览、在线办公、远程学习、视频播放、游戏娱乐及日常网络应用提供更加稳定、流畅的连接体验。

Step 1:Install Surge

opi25802580 2026-11-02 VPN加速器 19 0

"Surge" is a plugin for Max.js (now known as MaxScript.js) that is used to simulate water and fluid effects. It is particularly popular for creating realistic water and fluid effects in 3D environments. Below is a basic tutorial to get you started with Surge.

  1. Download and install the latest version of Surge from its official website: https://surge.js.org/.
  2. During installation, make sure to follow the installation instructions carefully to avoid any issues.

Step 2: Set Up Your Scene

  1. Create a new Max.js file or open an existing one where you want to use Surge.

  2. Add the following code at the beginning of your file:

    // Basic setup
    const scene = NodeJS(g "scene");
    const camera = NodeJS(g "camera");
    const renderer = NodeJS(g "renderer");
    const canvas = NodeJS(g "canvas");
  3. Add a Camera and a Renderer to your scene. These will be used to render the scene in Max.js.

  4. Add a Patch (a simple geometric shape) to the scene to serve as a container for your fluid effects.

  5. Add a Patch (the fluid container) to the container of the container (this is the final container for your fluid).

  6. Add a Volume (Surge) to the container. The Volume will be used to create the fluid effects.

  7. Add a Sphere to the Volume to create a basic shape that will be filled with fluid.


Step 3: Configure the Volume

  1. Switch to the Surge module and go to the Configuration tab.

  2. On the Volume tab, configure the following:

    • Fill Mode: Set it to "2" to fill the volume.
    • Density: Set it to ".5" to make the fluid more realistic.
    • Friction: Set it to "1" to increase the friction between the fluid and the container, making it more realistic.
    • Iterations: Set it to "1" to let the fluid flow for a long time.
    • Ensure Contraction: Set it to "True" to maintain the volume shape.
    • Velocity: If you want the fluid to start moving, set it to a non-zero value.
  3. Click Apply to save the configuration.


Step 4: Create a Simple Water Effect

  1. Add a Trigger (a simple shape) to the container to start the fluid flowing.

  2. Add a Source (a cone shape) to the container to create a disturbance that the fluid will flow around.

  3. Add a Sink (another cone shape) to the container to allow the fluid to flow into the environment.

  4. Add a Sensor (a sphere) to the environment to monitor the fluid height.

  5. Add a Tank (a simple shape) to the environment to contain the fluid.

  6. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.
    • On the Flow tab, set the Velocity to "True".
  7. Add a Measure (a sensor) to the fluid container:

    • On the Measure tab, set the Volume to the fluid container.
    • On the Measure tab, set the Sensor to the Tank.
  8. Add a Plot (a simple shape) to the environment:

    • On the Plot tab, set the Volume to the Tank.
  9. Add a Trigger to the fluid container to start the simulation.

  10. Add a Show Results (a sensor) to the fluid container:

    • On the Show Results tab, set the Volume to the Tank.
  11. Add a Tank to the environment to contain the fluid.

  12. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.
    • On the Flow tab, set the Velocity to "True".
  13. Add a Measure (a sensor) to the fluid container:

    • On the Measure tab, set the Volume to the fluid container.
    • On the Measure tab, set the Sensor to the Tank.
  14. Add a Plot (a simple shape) to the environment:

    • On the Plot tab, set the Volume to the Tank.
  15. Add a Trigger to the fluid container to start the simulation.

  16. Add a Show Results (a sensor) to the fluid container:

    • On the Show Results tab, set the Volume to the Tank.
  17. Add a Tank to the environment to contain the fluid.

  18. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.
    • On the Flow tab, set the Velocity to "True".
  19. Add a Measure (a sensor) to the fluid container:

    • On the Measure tab, set the Volume to the fluid container.
    • On the Measure tab, set the Sensor to the Tank.
  20. Add a Plot (a simple shape) to the environment:

    • On the Plot tab, set the Volume to the Tank.
  21. Add a Trigger to the fluid container to start the simulation.

  22. Add a Show Results (a sensor) to the fluid container:

    • On the Show Results tab, set the Volume to the Tank.
  23. Add a Tank to the environment to contain the fluid.

  24. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.
    • On the Flow tab, set the Velocity to "True".
  25. Add a Measure (a sensor) to the fluid container:

    • On the Measure tab, set the Volume to the fluid container.
    • On the Measure tab, set the Sensor to the Tank.
  26. Add a Plot (a simple shape) to the environment:

    • On the Plot tab, set the Volume to the Tank.
  27. Add a Trigger to the fluid container to start the simulation.

  28. Add a Show Results (a sensor) to the fluid container:

    • On the Show Results tab, set the Volume to the Tank.
  29. Add a Tank to the environment to contain the fluid.

  30. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.
    • On the Flow tab, set the Velocity to "True".
  31. Add a Measure (a sensor) to the fluid container:

    • On the Measure tab, set the Volume to the fluid container.
    • On the Measure tab, set the Sensor to the Tank.
  32. Add a Plot (a simple shape) to the environment:

    • On the Plot tab, set the Volume to the Tank.
  33. Add a Trigger to the fluid container to start the simulation.

  34. Add a Show Results (a sensor) to the fluid container:

    • On the Show Results tab, set the Volume to the Tank.
  35. Add a Tank to the environment to contain the fluid.

  36. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.
    • On the Flow tab, set the Velocity to "True".
  37. Add a Measure (a sensor) to the fluid container:

    • On the Measure tab, set the Volume to the fluid container.
    • On the Measure tab, set the Sensor to the Tank.
  38. Add a Plot (a simple shape) to the environment:

    • On the Plot tab, set the Volume to the Tank.
  39. Add a Trigger to the fluid container to start the simulation.

  40. Add a Show Results (a sensor) to the fluid container:

    • On the Show Results tab, set the Volume to the Tank.
  41. Add a Tank to the environment to contain the fluid.

  42. Add a Flow (Surge) to the fluid container:

    • On the Flow tab, set the Volume to the fluid container.

Step 1:Install Surge

猜你喜欢

137-8452-6914 扫描微信 3628457198 3628457198@qq.com
网站地图