AsoboStudio / glTF-Blender-IO-MSFS

Apache License 2.0
139 stars 28 forks source link

Invalid data (INF, -INF or NAN). in bufferview [5]:"for accessor [5]:" #331

Open azrsim opened 1 month ago

azrsim commented 1 month ago

Current Behavior

I get this dynamic error when I export models to MSFS, its an error thats getting on my nerves now.

Models that are already in the simulator exported from blender get this error dynamically, as in lets say i hit clean all the error occurs. Or when I try to re-export a model the error occurs. I've done everything in blender before exporting the model according to every tutorial (mesh cleanups, apply transforms, normal maps check) everything.

Its not a blender related issue, but its moreover a issue related to the exporter and its hard to identify what the error means and what it wants. afbeelding_2024-08-15_131552197

Expected Behavior

That the model should load in or that I know what causes the error

Steps To Reproduce

export from blender

Environment

- OS:
- Blender: 3.6.5
- glTF-Blender-IO-MSFS:

Anything else?

No response

azrsim commented 4 weeks ago

For people facing this issue or other bugs that are not browseable, I highly recommend them to run modelconverterx and import the exported model from blender (from the msfs gltf exporter) and re-export them via modelconverterx

This should fix it, the msfs blender exporter is buggy

SirComand commented 2 weeks ago

I disagree with you azrsim. There are problems that can be solved and exporting to modelconvertx depending on what you export from it is exported incomplete as for example the vertex color. The transparency of the decals you do for vertex color.

SirComand commented 2 weeks ago

That error happened to me once and I fixed it but I don't remember what I did. I think it is due to a bug in the way the mesh model is exported, but it is due to a problem with the GLTF addon that blender comes with.

SirComand commented 2 weeks ago

I don't know why they don't make their own GLTF addon for this MSFS addon because this addon is not made to export custom parts needed by the simulator.

azrsim commented 2 weeks ago

Its related to your export settings, if modelconverterX doesnt load your model in then you have something done wrong.

If your model loads in modelconverterx fine in but gives a error in MSFS then its related to the exporter. Because models that are corrupt according to MSFS its SDK should not even load in modelconverterx.

SirComand commented 1 week ago

I understand that, I'm just saying that there are errors that occur because of things that you don't know how they work. I mean at least many times it is better to select the Collection of the Scene the one that is on the top and export it. You don't know the problems that I have solved doing that. Now I don't know why it works.

Another error that has no solution and is random is Exporting scenes with parallax. It can only be fixed by exporting it several times until in one of all exports it exports well.

SirComand commented 1 week ago

Also happens if you copy an object between files that the material if you have a material already created with MSFS material this makes it corrupt is always better if you copy objects between files is to reset the material by selecting again the same material ie if you had Standard Material re-select Standard Material. I know the solution to several problems but some are so sporadic that I forget the solution to them.

y-khodja commented 6 days ago

I don't know why they don't make their own GLTF addon for this MSFS addon because this addon is not made to export custom parts needed by the simulator.

The blender exporter is updated with the different versions of Blender. We want to stick to LTS versions to keep the best version of the official glTF exporter. That way, we only need to plug our plugin to the right moment to export different extensions. Don't hesitate to report your issues with the khronos exporter directly on their github. Every issue matters.

Thank you

SirComand commented 22 hours ago

I will keep reporting those problems to be solved. Thank you very much for the reply.