Copy of Getting Started
This guide will help you integrate RhinoArtisan Web 3D into your project in minutes.
This section shows the simplest ways to embed the RhinoArtisan Viewer using plain HTML and JavaScript. These examples work in any modern browser and are framework-agnostic.
Example 1: Basic HTML integration
This example demonstrates the most basic integration of the RhinoArtisan Viewer using the Web Component.
The integration consists of two simple steps:
1. Load the Web Component script
The viewer is distributed as a Web Component. To use it, you only need to import the JavaScript module in your HTML page:
<script type="module"
src="https://artisan-cdn.fra1.digitaloceanspaces.com/web3d/dist/rhinoartisan-web-3d-1.0.7.js">
</script>This script registers the <rhinoartisan-web-3d> custom element in the browser.
No framework, build process or additional dependencies are required.
2. Add the viewer component to the page
Once the script is loaded, you can use the viewer as a standard HTML element:
<rhinoartisan-web-3d
id="viewer"
options='{ "model": { "url": "https://artisan-cdn.fra1.digitaloceanspaces.com/web3d/models/CONF_1753872717_9MwiNGnAtS.glb" } }'>
</rhinoartisan-web-3d>In this basic example:
The viewer is added directly to the page
A 3D model is loaded using a public
.glbfileConfiguration is passed through the
optionsattribute as a JSON string
That’s all that is required to render a 3D model.
Notes
The Web Component works in any modern browser.
It can be used in plain HTML or inside any framework (Angular, Vue, React, etc.).
More advanced configurations (environment, materials, interaction, events) can be added progressively.
Table of Contents
Installation
First Use
Basic Configuration
Key Concepts
Next Steps
Installation
Option 1: CDN (Recommended for quick testing)
Option 2: NPM/Yarn (For projects with bundler)
First Use
Basic HTML
React
Vue 3
Angular
Basic Configuration
Minimal Structure
Complete Basic Configuration
Key Concepts
1. Web Component
RhinoArtisan Web 3D is a Web Component, which means:
Works with any framework (React, Vue, Angular, Svelte, etc.)
Used as a normal HTML tag
Has its own encapsulated shadow DOM
2. Options vs API
There are two ways to control the viewer:
Options (Initial configuration):
API (Programmatic control):
3. UUIDs and Materials
3D objects are identified by their UUID (unique name in the model):
4. Events
The viewer emits events to notify changes:
5. Async Loading
The model loads asynchronously:
Common Examples
Example 1: Simple Viewer
Example 2: Control Buttons
Example 3: Materials Gallery (React)
Next Steps
Now that you have your viewer working, you can explore:
API Reference - All available methods
Configuration - Detailed configuration options
Materials - Complete materials catalog
Examples - More examples and use cases
Presets - Predefined configurations
Common Troubleshooting
Model doesn't show
Materials don't change
Slow performance
Support
Need help? Contact us:
Email: [email protected]
Documentation: https://docs.rhinoartisan.com
GitHub Issues: https://github.com/tu-usuario/rhinoartisan-web-3d/issues
Last updated
Was this helpful?