How to use Panorama in Forge Viewer v6


Huang Qijun

Based on the https://forge.autodesk.com/blog/iphone-panorama-forge-viewer example, I can use panorama on the iPhone. However, when I try to implement this extension with Forge Viewer v6, it doesn't work.

How to implement this functionality in v6?

Peter Broz

Due to some changes between versions, the process for overriding gamepad behavior is now different:

In your HTML, include the tag <script>with the FirstPerson extension followed by another tag with the deviceOrientationExt extension :<script>

<head>
  ...
  <script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/viewer3D.min.js?v=v6.0"></script>
  ...
  <script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/extensions/FirstPerson/FirstPerson.js?v=v6.0"></script>
  <script src="https://raw.githubusercontent.com/wallabyway/deviceOrientationExt/master/docs/deviceOrientationExt.js"></script>
</head>

Then in your JavaScript code, activate the first person tool after loading the FirstPerson extension :

viewer.loadExtension('Autodesk.FirstPerson').then(function() {
    viewer.toolController.activateTool('firstperson');
});

Related


How to use Panorama in Forge Viewer v6

Huang Qijun Based on the https://forge.autodesk.com/blog/iphone-panorama-forge-viewer example, I can use panorama on the iPhone. However, when I try to implement this extension with Forge Viewer v6, it doesn't work. How to implement this functionality in v6? P

How to Disable Gravity in Walk Mode in Forge Viewer v6

Wang Qizhen Is there a way to disable gravity in the Autodesk.BimWalk extension? For now, the camera will keep descending until it hits the floor. I want to be able to float in the air. Brian Huang Try this with the latest version (6.2+) of Viewer: // disable

How to use Forge Viewer Snapper?

Lucas Gibaud I am trying to use the snapper functionality in Forge Viewer to ask the user to select a point and then retrieve the point world coordinates of the selected point. I looked at this thread but it doesn't work for me: How to activate Autodesk Forge

How to use Forge Viewer Snapper?

Lucas Gibaud I am trying to use the snapper functionality in Forge Viewer to ask the user to select a point and then retrieve the point world coordinates of the selected point. I looked at this thread but it doesn't work for me: How to activate Autodesk Forge

How to use Forge Viewer Snapper?

Lucas Gibaud I am trying to use the snapper functionality in Forge Viewer to ask the user to select a point and then retrieve the point world coordinates of the selected point. I looked at this thread but it doesn't work for me: How to activate Autodesk Forge

How to use Forge Viewer Snapper?

Lucas Gibaud I am trying to use the snapper functionality in Forge Viewer to ask the user to select a point and then retrieve the point world coordinates of the selected point. I looked at this thread but it doesn't work for me: How to activate Autodesk Forge

How to use properties.db in Forge Viewer?

Barty The sqlite database file properties.dbis usually the largest file in the output of https://extract.autodesk.io/ . What is it used for in Forge Viewer and why is it available in a ZIP file if it is not used? Cyrillic The reason this example replicates bot

How to use properties.db in Forge Viewer?

Barty The sqlite database file properties.dbis usually the largest file in the output of https://extract.autodesk.io/ . What is it used for in Forge Viewer and why is it available in a ZIP file if it is not used? Cyrillic The reason this example replicates bot

How to use properties.db in Forge Viewer?

Barty The sqlite database file properties.dbis usually the largest file in the output of https://extract.autodesk.io/ . What is it used for in Forge Viewer and why is it available in a ZIP file if it is not used? Cyrillic The reason this example replicates bot

How to implement custom selection in Forge Viewer V7?

Shogo I try to implement custom selection, see fake blog. https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-i https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-ii https://forge.autodesk.com/blog/custom-window-sel

How to implement custom selection in Forge Viewer V7?

Shogo I try to implement custom selection, see fake blog. https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-i https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-ii https://forge.autodesk.com/blog/custom-window-sel

How to collapse categories in PropertyPanel in Forge Viewer v7?

mercambo I am using Forge Viewer to display properties of selected items in the model. When an object is selected, I want to automatically show the properties panel but keep the categories collapsed. Here is the code I am trying to achieve: viewer.addE

How to implement custom selection in Forge Viewer V7?

Shogo I try to implement custom selection, see fake blog. https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-i https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-ii https://forge.autodesk.com/blog/custom-window-sel

How to implement custom selection in Forge Viewer V7?

Shogo I try to implement custom selection, see fake blog. https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-i https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-ii https://forge.autodesk.com/blog/custom-window-sel

How to implement custom selection in Forge Viewer V7?

Shogo I try to implement custom selection, see fake blog. https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-i https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-part-ii https://forge.autodesk.com/blog/custom-window-sel

How to retrieve Forge Viewer objectTree?

Greg Bluntzer My goal is to highlight a room by adding new geometry based on the row I've created in Revit to a viewer like they do link here But I don't know how to access these row IDs. I know what they are in revit(element_id) but not how they map to dbid.

How to retrieve Forge Viewer objectTree?

Greg Bluntzer My goal is to highlight a room by adding new geometry based on the row I've created in Revit to a viewer like they do link here But I don't know how to access these row IDs. I know what they are in revit(element_id) but not how they map to dbid.

How to retrieve Forge Viewer objectTree?

Greg Bluntzer My goal is to highlight a room by adding new geometry based on the row I've created in Revit to a viewer like they do link here But I don't know how to access these row IDs. I know what they are in revit(element_id) but not how they map to dbid.

How to retrieve Forge Viewer objectTree?

Greg Bluntzer My goal is to highlight a room by adding new geometry based on the row I've created in Revit to a viewer like they do link here But I don't know how to access these row IDs. I know what they are in revit(element_id) but not how they map to dbid.

How to retrieve Forge Viewer objectTree?

Greg Bluntzer My goal is to highlight a room by adding new geometry based on the row I've created in Revit to a viewer like they do link here But I don't know how to access these row IDs. I know what they are in revit(element_id) but not how they map to dbid.

How to retrieve Forge Viewer objectTree?

Greg Bluntzer My goal is to highlight a room by adding new geometry based on the row I've created in Revit to a viewer like they do link here But I don't know how to access these row IDs. I know what they are in revit(element_id) but not how they map to dbid.

Panorama 360 Viewer with phonegap

Gaston I read a lot of answers but I don't know if this is correct. Almost all mobile browsers don't support WEBGL, just the latest ones. Almost any script, library or plugin is available for FLASH or WEBGL. I've seen and read a lot of your documentation, but

How to add marker as Sprite Bitmap Panorama Viewer in Three.js

Razak We have developed a panorama viewer in three.js. Add a texture bitmap to the Sphere and move the camera position there. We want to add markers in it as sprites. When we add the sprite to the scene, it doesn't get rendered. Why are the sprites not being r

How to add marker as Sprite Bitmap Panorama Viewer in Three.js

Razak We have developed a panorama viewer in three.js. Add a texture bitmap to the Sphere and move the camera position there. We want to add markers in it as sprites. When we add the sprite to the scene, it doesn't get rendered. Why are the sprites not being r

How to embed Autodesk Forge Viewer in mobile app?

Kate I have developed a mobile app using ionic and angular that can display pdf, image or dwg files in a fake viewer. It works perfectly both on website monitor but when i deploy the app in ios phone and android phone i found that if i open dwg files and some

How to add Autodesk Forge Viewer extension to React?

Howard 216 I want to add my Autodesk forge viewer extension to React. Is it possible and how can I do it? Now I have a viewer that works in React, but the extension still works with pure js. varunpatil https://forge-rcdb.autodesk.io/ is built with react and ha

How to copy or clone elements of a model in forge viewer

Alexis I have a model loaded and I want to select an element from it, clone it and move the clone 1000 units along the X axis. By testing in the web browser console, I managed the movement along the X-axis section with the following code: var tree = NOP_VIEWER