First Use
First Use
Basic HTML
<div style="width: 800px; height: 600px;">
<rhinoartisan-web-experience id="myViewer"></rhinoartisan-web-experience>
</div>
<script>
const viewer = document.getElementById("myViewer");
// Configure model
viewer.options = {
model: {
url: "path/to/your/model.glb",
},
};
</script>React
import { useRef, useEffect } from "react";
import "rhinoartisan-web-experience";
function ViewerComponent() {
const viewerRef = useRef(null);
useEffect(() => {
if (viewerRef.current) {
viewerRef.current.options = {
model: {
url: "path/to/your/model.glb",
},
};
}
}, []);
return (
<div style={{ width: "100%", height: "600px" }}>
<rhinoartisan-web-experience ref={viewerRef} />
</div>
);
}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?