欢迎光临散文网 会员登陆 & 注册

UE5.1_Niagara基础_官方内容示例_3.4

2023-03-21 11:49 作者:Winter惜曦  | 我要投稿
  • 3.4 Texture Sampling【纹理采样】

  • Texture sampling is only supported on the GPU at the moment.

    【纹理采样目前仅支持GPU粒子运行】

  • The Grid Location outputs a normalized location of each particle in the grid. We use that value to sample the texture as if it were a UV.

    【网格位置模组输出每个粒子在网格中的标准化位置(Output.GridLocation.Normalized Array location)。我们使用这数值来采样纹理就像它是UV坐标一样】

  • The Kill Particles module acts as a form of "Rejection Sampling". We sample the texture and then kill the newly spawned particles on their first frame if the sampled texture alpha equals 0.

    Because Interpolated Spawn is unchecked in the emitter properties, newly spawned particles do not run both their spawn and update scripts on the frame they were born, making this technique quite inexpensive.

    【清除粒子模组用于“拒绝采样”。我们对纹理进行采样然后在生成粒子的第一帧中清除Alpha=0的粒子】

    【因为发射器属性的“Interpolated Spawn插值生成”没勾选,所以新生成的粒子在生成那一帧不会都运行粒子生成和粒子更新脚本两个脚本,使得此技术性能消耗较少】

  • Spawn Particles in Grid【在网格中生成粒子】模组:基于设定的网格分辨率设置生成粒子

    X Count【X轴总数】

    Y Count【Y轴总数】

    Z Count【Z轴总数】

    Spawn Time【生成时间】

  • Grid Location【网格位置】模组

    Grid Origin【网格原点】:即网格中心点位置

    Coordinate Space【坐标空间】

    Normalize Offsets【标准化偏移】:启用后,1代表1个网格单元格长度

    Randomize Placement Within Cell【单元格内随机放置】:设置在X/Y/Z轴上随机偏移的最大值

    Dimension Difinition【尺寸定义】

    Padding Per Cell【按单元格填充】:设置相邻粒子的间距

    Bounding Box Size【边界框大小】:设置网格大小

    (仅Bounding Box Size)Align To Grid Cell【对齐到网格单元格】

    XYZ Dimension【XYZ的尺寸】

  • Sample Texture【采样纹理】模组:采样后获得Output.SampleTexture.SampledColor参数

    Texture【纹理】

    Texture User Parameter【纹理用户参数】:使用用户参数设置的纹理

    UV【纹理坐标】:设置采样的坐标点

  • Kill Particles【清除粒子】模组

    Kill Particles【清除粒子】:为True时清除粒子


UE5.1_Niagara基础_官方内容示例_3.4的评论 (共 条)

分享到微博请遵守国家法律