Example 3: Product configurator
This example shows how to build a simple product configurator using the RhinoArtisan Web 3D Web Component.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RhinoArtisan Web Component · Changing materiales</title>
<script type="module"
src="https://artisan-cdn.fra1.digitaloceanspaces.com/web3d/dist/rhinoartisan-web-3d-1.1.2.js">
</script>
</head>
<body>
<div class="layout">
<aside class="panel">
<h1>Product configurator</h1>
<h2>Metal</h2>
<div class="grid">
<button data-metal="WHITE_GOLD">White Gold</button>
<button data-metal="ROSE_GOLD">Rose Gold</button>
<button data-metal="YELLOW_GOLD">Yellow Gold</button>
</div>
<h2>Main gem</h2>
<div class="grid">
<button data-gem="RUBY">Ruby</button>
<button data-gem="EMERALD">Emerald</button>
<button data-gem="SAPPHIRE">Sapphire</button>
</div>
</aside>
<div class="stage">
<rhinoartisan-web-3d id="ra-viewer"></rhinoartisan-web-3d>
</div>
</div>
<script src="app.js"></script>
</body>
</html>JavaScript
Styling (optional)
Explanation
Targeting specific model parts
When to use this approach
Last updated
Was this helpful?