0

I am trying to visualize different type of models in Forge Viewer, models might be FBX, Revit, NWD. In the screenshot below, Naviswork shows two models (RVT and FBX) and they are correctly positioned using the shared coordinate system.

enter image description here

Meanwhile, in Forge Viewer both models are separated:

enter image description here

I have translated both models to svf2 using Derivative API in POSTMAN, the following json body is sent to the /job endpoint:

{
  "input": {
    "urn": "dXJuOmFkc2sub2JqZWp8czpvcy5vYmpduh3Q6eWFzcjhsjyL0hVRUxWQ7UyMEdJUy5mYng="
  },
  "output": {
    "formats": [
        {
            "type": "svf2",
            "views": [
                "2d",
                "3d"
            ]
        }
   ]
  }
}

I have tried solutions suggested in different related [issue1, issue2, issue3] topics but none of them has given any good result, am not really sure what am I doing wrong or missing. The screenshot above of F.Viewer was created using the Autodesk.Viewing.AggregatedView class. I have also used the MultipleModelUtil class by @Eason Kang

Both models are provided through this gdrive link, any help is much appreciated!

Yasser
  • 71
  • 1
  • 6

1 Answers1

0

To use MultipleModelUtil, you first need to ensure that the two models are in the same coordinate system and sharing with the exact origin. Commonly, RVT and FBX are in different coordinate systems, unit scales, and origins. Therefore, they are not aligned.

The reason why these two models are well-aligned in Navisworks is that Navisworks will do conversions of coordinate systems and origins to the Navisworks internal while converting to NWC files, as I know.

Eason Kang
  • 6,155
  • 1
  • 7
  • 24