Is Gltf2 Animation supported in Forge Viewer? - autodesk-forge

I've got a Gltf2 model which contains an animation (I checked on sandbox.babylonjs.com and I see the animation, so the gltf is ok). Is it possible to view the animation on the Viewer? I translated to SVF2 and loaded the model, but there is nothing referred to the animation...
Is there something more I should include in the translation or some option to use when creating the viewer?
Thanks for your help

glTF animations are not supported, no matter whether you're loading the glTF file into the viewer directly (https://forge.autodesk.com/blog/gltf-20-support-forge-viewer), or converting it to SVF or SVF2 first, as there hasn't been a demand for this feature.
As a potential workaround, you could try loading the glTF file using the standard three.js loader (which I'm guessing does support animations?) and place it inside a viewer overlay.

Related

Revit decals on Forge Viewer

I've got a Revit model with decals applied on some surfaces. I uploaded the rvt model on Forge and translated using SVF2 format, but when I see the viewer no images are rendered on the decals, even if the objects are translated (I can see them on the ModelBrowser). Decals appear as green border rectangles, fully transparent:
Is it possible to view decal native images on Forge?
How can I integrate the images source file in the translation and make them visible in the Viewer?
Thanks
Unfortunately, Decals on Revit are not supported as of today. It’s logged as RVTLMV-509. In the meantime, you can still apply decals using that technique.

Using LeafletLoader instead of PDFLoader to load a PDF into the forge viewer is not working

I want to load a large image into the forge viewer. I embedded the image in a pdf. However, when loading the pdf the vector pdf's resolution is not high enough and visibly worse than in the original pdf. Threfore, I am trying to load it via the LeafletLoader as described in this blogpost. However, setting LMV_RASTER_PDF did not switch to the LeafletLoader (LMV_VECTOR_PDF is set to false). The loader used is still the PDFLoader.
Is there a setting I am missing or is there a way to load a leaflet map directly with the forge viewer? (LMV 7.40.0)
The PDF file needs to be translated to SVF - that's going to generate the leaflets.
https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/prep-file4viewer/task3-translate-source-file/

Forge viewer displays elements blurry in 2D views and the Measure extension does not work on them

For some of our Revit models, in Forge viewer, 2D views are display blurry, no element can be selected and the Measure extension does not work on elements and only works on the dimensions and the titleblock.
Like this example:
here and here
But it should be like this
I have tested it with our viewer, A360 viewer and Autodesk Forge Tools vscode extension.
This is because 2D drawings or PDFs can contain both vector graphics and raster graphics (this article explains the difference between the two). The measure extension needs vector graphics in order to work properly.
Thanks to Petr Broz and his hint, by changing the Model Display Style in Revit side to Hidden Line instead of Shaded the problem was solved.
Like this.
Update:
The Shadows in Graphic Display Options, also should be unchecked.

Autodesk Forge Viewer - show markups all the time

We are using the Forge viewer to show both 2D and 3D models. For the 2D models, we would like to be able to show markups all the time, like you can with the viewer inside BIM360.
I tried the solution mentioned here: Forge Viewer: Show bottom toolbar and markups at the same time - but I have not been able to get that to work. It seems like when I call:
Autodesk.Viewing.Extensions.Markups.Core.Utils.showLmvToolsAndPanels(viewer)
It hides the markups.
How is this done in BIM360? - are they using a custom viewer, where this has been enabled somehow?
Unfortunately I was able to get it to work with:
Autodesk.Viewing.Extensions.Markups.Core.Utils.showLmvToolsAndPanels(viewer)
See live sample here:

HTML5 / JavaScript / WebGL viewer of KMZ / KML 3D OBJECTS?

Is there any HTML5/javascript/webgl viewer of KMZ KML 3D OBJECTS ?
i would like to use WEBGL technology to render kmz/kml 3d object (building) created in sketchup and uploaded to google warehouse.
Target is to use browser technologies instead of flash/java to render 3D product overview on white backgrdound with only horizontal rotation.
Thank you for any suggestions
Three.js has a ColladaLoader. SketchUp can export to Collada, and that's what KMZ files use. It's the .dae file in the KMZ.
I built a small library called kamikmz exactly for this purpose. The problem with loading a Collada model straight up is that you need to have the images referenced as textures available on the correct path as well. To overcome this issue I use the jszip library to unzip the kmz file right in the browser and the pass it to threejs.
Right now the library is still in development and has some performance issues when it comes to loading large models, however it works fine for most cases.