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

Next Steps

Now that you have your viewer working, you can explore:

  1. API Reference - All available methods

  2. Configuration - Detailed configuration options

  3. Materials - Complete materials catalog

  4. Examples - More examples and use cases

  5. Presets - Predefined configurations

Common Troubleshooting

Model doesn't show

Materials don't change

Slow performance

Support

Need help? Contact us:

Last updated

Was this helpful?