How to interact instructions

This commit is contained in:
MartinSereyC committed 2026-02-11 16:48:57 -03:00
1 parent 78e093ae17
commit 8e87fa527e
1 file changed
+62 -18
+62 -18
View File
@@ -3,35 +3,79 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Inventor 3D Showcase</title> <title>Bitua 3D Explorer</title>
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.4.0/model-viewer.min.js"></script> <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.4.0/model-viewer.min.js"></script>
<style> <style>
body { margin: 0; font-family: sans-serif; display: flex; flex-direction: column; align-items: center; } body {
header { padding: 20px; text-align: center; } margin: 0;
/* This sizes the 3D window */ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
model-viewer { display: flex;
width: 80%; flex-direction: column;
align-items: center;
background-color: #f5f5f7;
}
header { padding: 30px; text-align: center; }
/* The container for the 3D viewer */
.viewer-container {
position: relative;
width: 90%;
max-width: 1000px;
height: 600px; height: 600px;
background-color: #f0f0f0; background-color: #ffffff;
border-radius: 15px; border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
overflow: hidden;
}
model-viewer {
width: 100%;
height: 100%;
}
/* Instructions Overlay */
.controls-hint {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.6);
color: white;
padding: 10px 20px;
border-radius: 50px;
font-size: 14px;
pointer-events: none; /* Allows clicks to pass through to the model */
transition: opacity 0.5s;
} }
</style> </style>
</head> </head>
<body> <body>
<header> <header>
<h1>Autodesk Inventor Project</h1> <h1>Bitua 3D Explorer</h1>
<p>Drag to rotate | Scroll to zoom</p> <p>Mechanical Design Showcase</p>
</header> </header>
<model-viewer <div class="viewer-container">
src="Bita-3D-Explorer/Bita_v1.glb" <model-viewer
ar src="Bita-3D-Explorer/Bita_v1.glb"
camera-controls ar
shadow-intensity="1" camera-controls
auto-rotate shadow-intensity="1"
touch-action="pan-y"> auto-rotate
</model-viewer> touch-action="pan-y"
alt="A 3D model from Autodesk Inventor">
<div class="controls-hint">
🖱️ Left Click: Rotate | 🖱️ Right Click: Pan | ⚙️ Scroll: Zoom
</div>
</model-viewer>
</div>
<footer style="margin-top: 20px; color: #888;">
<p>Created with Autodesk Inventor & GitHub Pages</p>
</footer>
</body> </body>
</html> </html>