Skip to content

A collection of multiple basic examples to demonstrate different functionalities of our client library webvis.js

License

Notifications You must be signed in to change notification settings

threedy-io/basic-webvis-examples

Repository files navigation

webvis-code-snippets

Collection of various small examples and code snippets.

List of examples

How to include the instant3Dhub without any UI elements.

Example which illustrates how to include instant3Dhub into an iframe.

Includes two examples:

  • Simple example to demonstrate placement of simple text annotations.
  • Advanced example to demonstrate the ability to have html content in the annotations.

The example demonstrates how to connect 2D custom HTML elements with positions in 3D space, .e.g., as markers/POIs.

This example shows how to work with the Context and Viewer API inside of a regular HTML canvas element.

  • This example shows how to instantiate multiple viewers inside of a regular HTML canvas element, and the relationship between contexts and viewers.
  • Try adding a clip plane to the first context and notice how both viewers get updated, while the second context is unaffected. Selecting the object in a viewer also highlights it in all other viewers attached to the same context.
  • This example shows how to instantiate multiple contexts inside of a regular HTML canvas element, and the relationship between contexts and viewers.
  • Try adding a clip plane to the first context and notice how both viewers get updated, while the second context is unaffected. Selecting the object in a viewer also highlights it in all other viewers attached to the same context.
  • This example shows how to load dynamics structure to webvis.

How to use the example

  • Setup
    • In order to run the example you will need a web server like LiveServer:
    • Add LiveServer webserver extension to VScode from here

Technical details

  • All the examples are based on the version of instant3Dhub that is hosted on our demo instance. For further information about other versions, please check out our documentation portal.
  • You can change these examples to use our own instant3dhub installation. To do that, You need to change the link of webvis.js?next in the index.html file:
    <script src="YOUR_HUB_INSTANCE/repo/webvis/webvis.js?next"></script>

License

All the examples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.

How to report an issue

For any issues please contact us.

About

A collection of multiple basic examples to demonstrate different functionalities of our client library webvis.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages