1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

BeamNGVehicle::buildExportPolyList returns incorrect values

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by pranays123, Sep 18, 2025 at 7:33 AM.

  1. pranays123

    pranays123
    Expand Collapse

    Joined:
    Oct 3, 2016
    Messages:
    20
    The function BeamNGVehicle::buildExportPolyList seems to be returning incorrect values/not returning all values for flexmesh parts of a vehicle. This bug can be reproduced by selecting a vehicle in the world editor and exporting it as a collada from the file menu. For example, when exporting a Gavril D-Series, the output looks like the following:
    upload_2025-9-17_22-29-4.png

    With just the vertices it looks like this:
    upload_2025-9-17_22-29-29.png

    Some propmeshes are coming through (not the wheels though in this example), and flexmesh geometry is incorrect.

    It is likely BeamNGVehicle::buildExportPolyList causing these issues, since exporting colladas works for other SceneObject types.

    Unfortunately, I haven't been able to find the root cause of the issue yet due to not knowing the exact structure of OptimizedPolyList and it therefore being very hard to parse through the disassembly.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice