three实现在线glb三维模型文件大小压缩器代码
代码语言:html
所属分类:三维
代码描述:three实现在线glb三维模型文件大小压缩器代码,可将glb大文件降低精度和文件大小。
代码标签: three 在线 glb 三维 模型 文件 大小 压缩器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GLB模型压缩工具</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
color: #e0e0e0;
}
.container {
background-color: rgba(30, 30, 46, 0.7);
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
h1 {
color: #64b5f6;
text-align: center;
margin-bottom: 30px;
font-weight: 300;
letter-spacing: 1px;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.upload-area {
border: 2px dashed rgba(100, 181, 246, 0.5);
border-radius: 10px;
padding: 40px;
text-align: center;
margin: 20px 0;
transition: all 0.3s ease;
background: rgba(25, 25, 40, 0.5);
}
.upload-area:hover {
border-color: #64b5f6;
background: rgba(30, 40, 60, 0.6);
}
.upload-area.dragover {
border-color: #64b5f6;
background: rgba(30, 50, 80, 0.7);
box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}
input[type="file"] {
display: none;
}
.btn {
background: linear-gradient(to right, #2196f3, #21cbf3);
color: white;
padding: 12px 24px;
border: none;
border-radius: 30px;
cursor: pointer;
font-size: 16px;
margin: 10px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
font-weight: 500;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}
.btn:active {
transform: translateY(0);
}
.btn:disabled {
background: #555;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.info {
margin: 20px 0;
padding: 20px;
background: rgba(25, 35, 55, 0.6);
border-radius: 10px;
border: 1px solid rgba(100, 181, 246, 0.2);
}
.info h3 {
color: #64b5f6;
margin-top: 0;
border-bottom: 1px solid rgba(100, 181, 246, 0.3);
padding-bottom: 10px;
}
.progress {
width: 100%;
height: 30px;
background: rgba(20, 25, 40, 0.8);
border-radius: 15px;
overflow: hidden;
margin: 20px 0;
border: 1px solid rgba(100, 181, 246, 0.2);
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0