three实现三维房间灯光可视化调节参数效果代码
代码语言:html
所属分类:三维
代码描述:three实现三维房间灯光可视化调节参数效果代码
代码标签: three 三维 房间 灯光 可视化 调节 参数
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: #000;
font-family: "Arial", sans-serif;
overflow: hidden;
position: relative;
cursor: -webkit-grab;
cursor: grab;
}
body:active {
cursor: -webkit-grabbing;
cursor: grabbing;
}
#canvas-container {
width: 100vw;
height: 100vh;
position: relative;
}
.ui-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
color: white;
}
.title {
position: absolute;
top: 5%;
left: 50%;
transform: translateX(-50%);
font-size: 2.5rem;
font-weight: 100;
letter-spacing: 8px;
color: rgba(255, 255, 255, 0.8);
text-transform: uppercase;
text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}
.controls {
position: absolute;
top: 15%;
left: 3%;
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
line-height: 1.6;
max-width: 300px;
background: rgba(0, 0, 0, 0.3);
padding: 1.5rem;
border-radius: 10px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.lighting-controls {
position: absolute;
top: 15%;
right: 3%;
background: rgba(0, 0, 0, 0.4);
padding: 1.5rem;
border-radius: 10px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
pointer-events: all;
}
.lighting-controls h3 {
color: rgba(255, 255, 255, 0.9);
margin-bottom: 1rem;
font-size: 1rem;
font-weight: 300;
}
.control-group {
margin-bottom: 1rem;
}
.control-group label {
display: block;
color: rgba(255, 255, 255, 0.7);
font-size: 0.8rem;
margin-bottom: 0.3rem;
}
.control-group input[type="range"] {
width: 100%;
height: 4px;
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
outline: none;
-webkit-appearance: none;
}
.control-group input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
background: #fff;
border-radius: 50%;
cursor: pointer;
}
.control-group input[type="color"] {
width: 40px;
height: 25px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.fps-counter {
position: absolute;
top: 10px;
left: 10px;
color: rgba(255, 255, 255, 0.6);
font-size: 0.8rem;
font-family: monospace;
}
.time-display {
position: absolute;
bottom: 15%;
left: 50%;
transform: translateX(-50%);
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
text-align: center;
}
.tags {
position: absolute;
bottom: 5%;
left: 50%;
transform: translateX(-50%);
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.6);
}
.tag {
background: rgba(255, 255, 255, 0.1);
padding: 0.4rem 1rem;
border-radius: 20px;
margin: 0 0.3rem;
display: inline-block;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgba(255, 255, 255, 0.8);
font-size: 1.2rem;
z-index: 5;
}
.credits {
position: absolute;
bottom: 3%;
right: 3%;
color: rgba(255, 255, 255, 0.4);
font-size: 0.7rem;
text-align: right;
}
/* Responsive design */
@media (max-width: 768px) {
.title {
font-size: 2rem;
letter-spacing: 4px;
}
.controls,
.lighting-controls {
font-size: 0.8rem;
padding: 1rem;
max-width: 250px;
}
}
</style>
</head>
<body translate="no">
<div id="canvas-container">
<div class="loading" id="loading">Initializing 3D Environment...</div>
</div>
<div class="ui-overlay.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0