23 Jan 2019

Viewer Release Notes: v 6.4

Default blog image

Added

  • Danish locale support
  • Leaflet support to viewer.impl.getScreenshotProgressive
  • Support ghosted object in getScreenshotProgressive
  • Support for undo in the markups extension to automatically select the next markup item available to undo. 
  • Support different dpi leaflet-pdf file compare
  • BIM color theme via viewer.setTheme('bim-theme').
  • Method BubbleNode.useAsDefault():Boolean
  • CrossFadeEffects extension
    • CrossFade effects are an optional LMV feature that support rendering into multiple color targets and blending between them. Before, this code was part of core LMV. This PR moves the code to a new extension "CrossFadeEffects". The extension id is: Autodesk.CrossFadeEffects
Example:
var extName = 'Autodesk.CrossFadeEffects';
NOP_VIEWER.loadExtension(extName);

function setCameraToRoom() {
    var cam = {
       fov:          53.13010235415598,
       isPerspective:true,
       orthoScale:   6.442020414517138,
       position:     {x:-23.63091853857176, y: 0.9033896546012906, z:-4.261154219883789},
       target:       {x:-20.871083468967406, y: 6.520671770079398, z:-5.787286273399167},
       up:           {x:0.10446560472788749, y: 0.21262602957092375, z:0.9715333802694284}
    };
    NOP_VIEWER.impl.setViewFromCamera(cam, true);
}

function fadeExample() {

    // apply fade transition
    var viewer = NOP_VIEWER;
    var ext = viewer.getExtension(extName);   
    ext.fadeToViewerState(setCameraToRoom, 1.5);
}

Geolocation extension

API Reference:

Provides functions for converting GPS coordinates in WGS-84 format { x: Longitude, y: Latitude, z: Height(m) } into
Viewer scene coordinates and back. Supports a single 3D model loaded into the scene.

The extension id is: Autodesk.Geolocation

Example:

viewer.loadExtension('Autodesk.Geolocation')

 

Functions:

Does the model contain geolocation data?

returns boolean  (true when the model contains geolocation data)

hasGeolocationData() 

 

Converts viewer coordinates (obtained with something like viewer.clientToWorld()) into { x: Longitude, y: Latitude, z: Height (meters) } in WGS-84 format.
returns {THREE.Vector3}:  (GPS coordinate in WGS-84 format: { x: Longitude, y: Latitude, z: Height } )

lmvToLonLat( lmvPoint ) 

 

Converts coordinates from { x: Longitude, y: Latitude, z: Height (meters) } in WGS-84 format into viewer scene coordinates.
returns {THREE.Vector3}:  (3D point in the scene)

lonLatToLmv( lonLat )

 

 

Returns a Google Maps URL with a PIN on the specified GPS location. When no argument is provided, the URL will use the Model's geolocation if available.

openGoogleMaps( [ pointLL84 ] )

 

Click the model to set points and see optional panel UI for testing and debugging

activate() 

 

geoloc

Changed

  • Redesigned Environments UI in Settings Panel.
  • [PushPin extension] Save external IDs along with LMV IDs
  • [PushPin extension] Save globalOffset to viewerState
  • FloorSelector: Avoid using crossFade effects when running on mobile

Fixed

  • Restore topology highlight in measure tool for Fusion models
  • Transparent object loses transparency and becomes opaque on focus.
  • Selected transparent objects become opaque when the view is orbited, panned or zoomed.
  • First Person extension does not properly initialize FOV from ortho view
  • Crash with F2D files missing rcv_offsets and rcvs property DB files
  • Improve bubbleNode.search docs
  • [Markups extension] Fix canvg import on IE11 and Edge
  • [Pixel Compare] sensitivity of threshold
  • Some PDF text characters failing to get filled
  • JsDocs search function
  • Animation scrub for opacity
  • DocumentBrowser extension lists an empty "folder" entry
  • Inconsistent appearance of Phong material with mirror transform. Back-facing normals now face the camera in this case

Related Article