type
status
date
slug
summary
tags
category
icon
password
从某些途径拿到某些游戏的模型的时候,是gltf格式。我尝试将其导入到Unity中。
Unity本身不支持gltf格式,需要使用blender导入后转为fbx再导入Unity。不过这个过程有很多设置需要调整。目前暂时没有完全调整完
  1. 导入blender时的shade状态是破碎的
    1. notion image
      上图为默认导入的状态。在Blender中执行了Shade Smooth后,效果正确
      notion image
  1. uv有特殊的Repeat规则 在导入gltf格式模型后,blender自动生成了材质蓝图。在读取贴图之前,blender对UV做了如下处理
    1. notion image
      即X轴为pingpong(Unity的Mirror),Y轴为Wrap的模式(min1 max0等于Unity的1-Repeat)
  1. 全硬边的法线信息 直接导入Unity的法线是全硬的
    1. notion image
      考虑把Unity导入设置中法线信息改为Calculate,结果恢复平滑
      notion image
     
    「Hallo World」 UE4制作分享笔记UE5 首次拉取工程重编译的问题
    Loading...