This is a runtime widget to view a 3D collada model (*.dae, *.obj, *.gltf) in Cumulocity IoT.
⚠️ This project is no longer under development. Please use cumulocity-3d-model-viewer-widget-plugin for Application Builder >=2.x.x and Cumulocity >=1016.x.x⚠️
- Supports measurements from a single device
- Allows background color customization.
- Allows to configure realtime device measurement for model movements.
- Allows to upload custom collada(.dae, .obj, .gltf) model file.
- Download the latest
3d-model-viewer-widget-{version}.zip
file from the Releases section. - Make sure you have Runtime Widget Loader installed on your Cockpit or App Builder app.
- Open a dashboard.
- Click
more...
. - Select
Install Widget
and follow the instructions.
- Make sure you have successfully installed or deployed the widget.
- Click on
Add widget
. - Choose
3d model viewer
widget. Title
is the title of widget. Provide a relevant name. You may choose to hide this. Go toAppearance
tab and chooseHidden
underWidget header style
.- Select the
device
. Model file(*.dae, *.obj, *.gltf)
is to upload the model file (*.dae, *.obj, *.gltf) into inventory binary. Please wait for it to finish the upload.Variables
is to declare variables with a constant value or map them to the realtime device measurement series. Choose Target as None and provide the constant value or choose Target as Device and then select a measurment series.Properties
is to define values for the model properties. You can provide a value as an mathematical expression using the variables defined earlier.Background color (in hex)
allows you to set a custom background color using the color picker.Show grid
allows you to show or hide the grid.- Click
Save
to add the widget on the dashboard. - In case you see unexpected results on the widget, refer to browser console to see if there are error logs.
- Clone the repository on local machine using
git clone https://github.com/SoftwareAG/cumulocity-3d-model-viewer-widget.git
. - Run
npm install
to download the module dependencies. - Install c8ycli
npm install -g @c8y/cli
if not already. - Run
c8ycli server -u https://your_tenant_url
to start the server. - Go to
http://localhost:9000/apps/cockpit/
in the browser to view and test your changes. - (Optional) push the changes back to this repository.
- Finish the development and testing on your local machine.
- Run
gulp
to start the build process. Runnpm install -g gulp
to install gulp if not already. - Use
widget.zip
file in thedist
folder as a distribution.
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
For more information you can Ask a Question in the TECHcommunity Forums.
You can find additional information in the Software AG TECHcommunity.