weixin_39861905
weixin_39861905
2020-11-21 17:40

Collision naming convention invalid for UE4

I've always had difficulty getting collision names to work in UE4, but the one naming convention that always works without fail is to 100% of the time include two digits in the suffix, even if they are zero. "CollisionType_ObjectName_xx"

This is in line with Unreal's documentation regarding the FBX static mesh pipeline. https://docs.unrealengine.com/en-us/Engine/Content/FBX/StaticMeshes

As it is, with your addon I have about a 20% success rate when, by chance, it decides to write in a valid suffix during the export. Perhaps I have other settings that are incorrect. Regardless I would definitely like to see the _xx suffix, it's more reliable, and adhere's to UE4's documentation.

该提问来源于开源项目:xavier150/Blender-For-UnrealEngine-Addons

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

8条回答

  • weixin_39861905 weixin_39861905 5月前

    These are the settings for my meshes image

    These are the settings for my collision meshes image

    点赞 评论 复制链接分享
  • weixin_39861905 weixin_39861905 5月前

    This is probably my 30th attempt to export/import this particular model. It was successful. What I had to do was manually reassign each collision mesh to its object. I did take note that it reset all of the names to not include a # suffix unless it is in a series of 2 or greater collision meshes. Which still leads me to believe that this is a naming convention problem, and perhaps could be solved by always including a ## suffix as suggested in the UE4 documentation, and is my personal practice. If there's only one collision mesh, do not include a suffix (or, alternatively, just include a _00, which Unreal seems to be okay with), and if there are two or more collision meshes, count up from _00, _01, _02

    点赞 评论 复制链接分享
  • weixin_39715538 weixin_39715538 5月前

    Hi nspidel, sorry for the delay

    According to your parameter and object names this should work fine. I think it's a problem with your version of Unreal, can you try to reinstall your Unreal 4.21 with config and save or test with another version and on an empty project?

    I have do a version with _## as suffix for test: blender-for-unrealengine.0.2.3(test)_Blender2.7.zip blender-for-unrealengine.0.2.3(test)_Blender2.8.zip it's not version 2.3, just a test but in your case it will be able to solve the problem, tell me if it works better

    点赞 评论 复制链接分享
  • weixin_39861905 weixin_39861905 5月前

    I'm using version 4.21 And my naming convention should be completely legal. I use "-" instead of spaces, and I only use letters and numbers.

    It's so bizarre, sometimes I can get collisions to work, and, in the case of this model, the collisions appeared when I imported them the first time. Every single export/import after that initial successful attempt has failed to generate collision meshes.

    1) Export and import model successfully 2) Make modifications 3) Can no longer export or import model

    image

    点赞 评论 复制链接分享
  • weixin_39715538 weixin_39715538 5月前

    Hello nspidel ! Thanks, I would make the change, but this is also supposed to work with a single suffix. I think this is due to another problem, can you send me the file with the collisions fail ?

    点赞 评论 复制链接分享
  • weixin_39861905 weixin_39861905 5月前

    Ah... Shoot, I actually can't send you this file. It's a work file and it's all NDA.

    点赞 评论 复制链接分享
  • weixin_39861905 weixin_39861905 5月前

    I just got it to work! So.. my collisions do not seem to update when I reimport the models. I need to make my changes, delete my meshes from the UE4 project, and then when I import them the changes are visible. So I think you're right, it may not have anything to do with the collision names (although it'd still be nice if their names were all _xx in Blender, lol just for my own personal OCD reasons, but that's not important lol) but maybe it has to do with the importer? Scripts and programs really are not my thing at all, but I hope I can help you hone in on your debugging! It's a great addon

    点赞 评论 复制链接分享
  • weixin_39715538 weixin_39715538 5月前

    The collision is supposed to be updated also with the reimport without having to use the import scripts, http://xavierloux.com/sharex/CollisionUpdate.gif The name of your object may contain spaces or illegal characters, you work with which version of unreal? Thanks !

    点赞 评论 复制链接分享

相关推荐