neo3dModel
Plugin for rendering 3D models (.glb format)
IMPORTANT: It will only work on compiled projects within a webserver (secure context).
Based on:
https://github.com/GoogleWebComponents/model-viewer
Sample App:
https://visualneo.com/tutorials/neo3dmodel
neo3dModelLoad
Purpose: |
Load a 3D model in .glb format into a Container Object. |
Category: |
neo3dModel |
Syntax: |
neo3dModelLoad "containerId" modelfile "backgroundcolor"
containerId Choose Container Object modelfile Choose a 3d model file (.glb) backgroundcolor Background Color (ie: #646464 or red) |
neo3dModelBackgroundColor
Purpose: |
Set the 3D model background color |
Category: |
neo3dModel |
Syntax: |
neo3dModelBackgroundColor "containerId" "backgroundcolor"
containerId Choose Container Object backgroundcolor Background Color (ie: #646464 or red) |
neo3dModelCameraOrbit
Purpose: |
Set the orbital position of the camera |
Category: |
neo3dModel |
Syntax: |
neo3dModelCameraOrbit "containerId" "azimuthal" "polar" "distance"
containerId Choose Container Object azimuthal Azimuthal angle (ie 20deg or 1.5rad) polar Polar angle (ie 20deg or 1.5rad) distance Distance (ie 1.5m or 20cm or 50mm or 105%) |
neo3dModelCameraTarget
Purpose: |
Set the point the camera orbits around. Accepts values like 0m, 1.5m , -20cm, 3mm or 'auto' for center. |
Category: |
neo3dModel |
Syntax: |
neo3dModelCameraTarget "containerId" "xdistance" "ydistance" "zdistance"
containerId Choose Container Object xdistance X distance from model bounding box center ydistance Y distance from model bounding box center zdistance Z distance from model bounding box center |
neo3dModelCameraControls
Purpose: |
Enables controls via mouse/touch when in flat view. |
Category: |
neo3dModel |
Syntax: |
neo3dModelCameraControls "containerId" controls
containerId Choose Container Object controls Allow user drag model? |
neo3dModelAutoRotate
Purpose: |
Enables the auto-rotation of the model |
Category: |
neo3dModel |
Syntax: |
neo3dModelAutoRotate "containerId" autorotate
containerId Choose Container Object autorotate Enables auto rotation? |
neo3dModelShadowIntensity
Purpose: |
Controls the opacity of the shadow. Set to 0 to turn off the shadow entirely. Defaults to 0. Allowed values 0 to 1. Use 0.5 for mid shadow. |
Category: |
neo3dModel |
Syntax: |
neo3dModelShadowIntensity "containerId" intensity
containerId Choose Container Object intensity Shadow intensity |
neo3dModelPlayAnimation
Purpose: |
Controls the opacity of the shadow. Set to 0 to turn off the shadow entirely. Defaults to 0. Allowed values 0 to 1. Use 0.5 for mid shadow. |
Category: |
neo3dModel |
Syntax: |
neo3dModelPlayAnimation "containerId" "animationname"
containerId Choose Container Object animationname Animation name (empty for default) |
neo3dModelStopAnimation
Purpose: |
Controls the opacity of the shadow. Set to 0 to turn off the shadow entirely. Defaults to 0. Allowed values 0 to 1. Use 0.5 for mid shadow. |
Category: |
neo3dModel |
Syntax: |
neo3dModelStopAnimation "containerId"
containerId Choose Container Object |
neo3dModelGetCameraOrbit
Category: |
neo3dModel |
Syntax: |
neo3dModelGetCameraOrbit "containerId" [cameraorbit]
containerId Select a Container Object cameraorbit Variable to store result |