img-3d-for-sc / 3.html
soiz1's picture
Update 3.html
ce96d4c verified
raw
history blame
1.92 kB
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>3Dメッシュ作成手順</title>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<style>
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
background-color: #f9f9f9;
margin: 20px;
color: #333;
}
div {
background: #fff;
padding: 20px;
margin-bottom: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
b {
font-size: 1.2em;
color: #007acc;
}
a {
color: #007acc;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
img {
display: block;
margin: 15px auto;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
model-viewer {
display: block;
margin: 20px auto;
background: #eee;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div>
<b>1.<a href="https://huggingface.co/spaces/VAST-AI/TripoSG" target="_blank">TripoSG</a>を開く</b><br>
<button onclick="window.open('https://huggingface.co/spaces/VAST-AI/TripoSG', '_blank')">
開く
</button>
</div>
<div>
<b>2.下記の画像のように操作し、色の付いていないメッシュを作成する。</b><br>
<img src="img1.png" width="400px" alt="手順画像"><br>
作成されたメッシュの例:
<model-viewer
src="model1.glb"
alt="例"
auto-rotate
camera-controls
style="height: 350px;">
</model-viewer>
</div>
<b>3.「Apply Texture」を押して色を付ける。</b><br>
結果の例:
<model-viewer
src="model2.glb"
alt="例"
auto-rotate
camera-controls
style="height: 350px;">
</model-viewer>
</body>
</html>