1.7 FBX importer LOD rule not working properly

0

I'm running into an issue with the fbx importer and the LOD rule where the base mesh shows the 2 LODs with it. I set up a mesh that had a box as LOD 0, a sphere as LOD 1, and a cylinder as LOD 2. When I add the LOD meshes in the LOD rule everything seems to work fine except the base mesh is a combination of all 3 meshes. It should only be a box. Once zooming out it properly fades into the the first and second LODS but one getting back to LOD 0 it just shows all 3 again. The gif below shows whats happening. I am not sure if this is a bug or me not setting it up properly. I couldnt find anything in the docs on setting up the LOD rule for the importer. Any thoughts? Thanks!

REMOVEDUPLOAD

asked 7 years ago170 views
6 Answers
0
Accepted Answer

@REDACTEDUSER

Thanks for the screenshots, it really helps speed things along! I think I see the problem. Correct me if I am wrong.

Your asset has 3 LODs right?

It is not very clear in the FBX importer, but imagine that your Mesh Group / Group Name is your high LOD. This is the geometry that you would see if you did not have any LODs. So, your _lod0_Box is already in place.

Next, only add two LODs: [0] and [1]

Set [0] to be your _lod1_Sphere

Set[1] to be your _lod2_Teapot

Also, uncheck RootNode, that wont be necessary for it to work. Additionally, I'd like to mention that the naming convention I used is not necessary for this to work with the FBX Importer. But, it is a convention when using the Maya exporter and so I continue to use it for the sake of consistency.

More details!

With the asset that I provided you, here are the steps I used to get it to work correctly:

  • Clearly name assets for export in DCC (For the FBX Importer these names can be anything, but it is best to be very clear):
    • _lod0_filename
    • _lod1_filename
    • _lod2_filename
  • Export scene from DCC to FBX
  • Open LY go to View / Open View Pane / FBX Importer (Preview)
    • Open FBX file
    • Under Mesh Group / Select meshes: All of the meshes are selected by default.
      • Select the hierarchy icon on the right and choose only 1 mesh: _lod0_sphere
    • Click on Add Rule and and choose Level of Detail
    • Click the + icon on the right twice to add two LODs
    • Click on the hierarchy icon on the right for [0] and choose only 1 mesh: _lod1_cube
    • Click on the hierarchy icon on the right for [1] and choose only 1 mesh: _lod2_cylinder
    • Click on Update in the main window and you are all set!
answered 7 years ago
0

Thanks a lot @REDACTEDUSER

answered 7 years ago
0

I'm checking with the techs on this one @REDACTEDUSER

answered 7 years ago
0

You are in luck, I just documented this process and we will update the documents soon!

I'd like to know more about your setup. What software are you using to author the assets? What version of Lumberyard are you using? Can you share some screenshots from the FBX importer?

Also, I am attaching a test asset and a Maya file I created that work correctly: 3903-fbx-lods.zip|attachment (50.5 KB)fbx-lods.zip.

answered 7 years ago
0

@REDACTEDUSER

answered 7 years ago
0

Thanks for the response @CriticalEggCeption I am getting some pretty confusing results at this point. First I am using 3ds max and lumberyard 1.7. I was able to get the fbx file you attached working perfectly. I even imported it into Max and then exported again so that it was a straight export from Max. Everything worked fine. Then I tried creating some meshes inside of Max and exported those as fbx and imported into Lumberyard with the exact same settings as I used with your fbx, but this time it didnt work. I even tried using the same naming convention that you used. Here are some screenshots of the importer.

REMOVEDUPLOAD

REMOVEDUPLOAD

REMOVEDUPLOAD

answered 7 years ago

This post is closed: Adding new answers, comments, and votes is disabled.