Viewer API Change Log

We occasionally update the Viewer API to fix issues and add new features.

You can always find the latest in the Viewer API documentation:

No commenting on this thread

We disabled commenting to keep this thread compact. To reply to a specific change log entry, hover over it and click the ‘Reply as Linked Topic’ link:

image

Subscribe to this thread to receive updates

Would you like to receive an email when we post new entries? Scroll to the bottom of this page, click the ‘Tracking’ button and change it to ‘Watching’.

image

Or use the button below the timeline/scrollbar. That’s all!

16 May 2018 - Version 1.2.0

https://sketchfab.com/developers/viewer/functions

  • New Annotation Events

    • annotationMouseEnter
    • annotationMouseLeaves
    • annotationSelect
  • New Camera Movement Events

    • cameraStart
    • cameraStop
  • New Viewer Events

    • Viewerplay
    • ViewerStop
  • Updated click Event: now fires with null values when clicking on nothing

  • New unselectAnnotation() method: unselect current selected annotation


Subscribe to this thread to receive updates:

6 August 2018 - Version 1.3.0

Viewer API v 1.3 is a pretty big update. You’ll be able to create and edit annotations on the fly, perform raycasting calculations, use new easing options for animations, add video textures, and more!

New

Changes

  • Removes “noAnnotation” event (i.e. returning -1 when entering/leaving an annotation)
  • Hidden nodes can now be transformed while remaining hidden
  • An error will be thrown if the browser has WebGL disabled and the “fallback” 360° viewer loads

Fixes

  • Annotation events now fire correctly from annotation menu clicks
  • Mouse event pick option is now optional (defaults to fast)

Subscribe to this thread to receive updates:

2 Likes

17 December 2018 - Version 1.4.0

New

  • Lights / Env

    • setLight
    • getLight
    • setEnvironment
    • getEnvironment
  • Camera

    • getFov
  • Inspector

    • setShadingStyle
    • getShadingStyle
    • setWireframe
    • getWireframe

Changes

  • The click event is no longer sent if the user drags the camera.
  • Nodes now use stable IDs, so applications are resilient to models being re-uploaded/reprocessed.
  • You can now go to the Static Pose of an animation by passing -1 as the animation ID.

Subscribe to this thread to receive updates:

1 Like

27 March 2019 - Version 1.5.0

:sparkles: :sparkles: :sparkles:

We added some shiny new demos to the documentation pages. You can see each mini-application in action, edit the code in real time, test on your own model, and fork the code to JSFiddle and CodePen to continue working on it.

Check it out here!

:sparkles: :sparkles: :sparkles:

New

Changes

  • addVideoTexture now includes a muted parameter. This allows the video to autoplay by default without being blocked by browsers’ audio policy that require user interaction to play audio.
  • gotoAnnotation now includes a preventCameraMove parameter. This allows you to open an annotation without moving the camera to its position.
  • Added one to setCycleMode, which will play the current animation once and stop.

Subscribe to this thread to receive updates:

3 Likes