You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
V3D-nodejs/views/createScheme.html

192 lines
7.8 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>3D MODELS SYSTEM - CREATE</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<!-- three.js -->
<script src="/js/three/three.js"></script>
<script src="/js/three/OrbitControls.js"></script>
<!-- 加载器 -->
<script src="/js/three/OBJLoader.js"></script>
<script src="/js/three/FBXLoader.js"></script>
<script src="/js/three/TGALoader.js"></script>
<script src='/js/three/inflate.min.js'></script>
<!-- ZUI -->
<link rel="stylesheet" href="https://cdn.bootcss.com/zui/1.8.1/css/zui.min.css">
<script src="https://cdn.bootcss.com/zui/1.8.1/js/zui.min.js"></script>
<style>
* {
margin: 0px;
padding: 0px;
}
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
}
#viewField {
width: 80%;
height: 100%;
position: absolute;
top: 0px;
right: 0px;
}
#editField {
background-color: #fafafa;
padding: 10px;
width: 20%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
#textureField{
width:40px;
position: absolute;
top:10px;
right: 10px;
}
#textureField>img{
margin-top:5px;
}
</style>
</head>
<body>
<!-- threejs容器 -->
<div id="viewField">
</div>
<!-- 材质选择 -->
<div id="textureField">
</div>
<!-- 编辑栏 -->
<div id="editField">
<div class="panel">
<div class="panel-body">
<div id='cameraConfig'>
<label for="volume">相机高度最大值:</label><input type="number" id='cameraHeightMaxValue' style="width:50px"><br />
<label for="volume">相机高度:</label><b id='cameraHeightValue'>xx</b><br />
<input type="range" id="cameraHeight" min="0" max="100" style="display: block;width: 100%">
<hr />
<label for="volume">相机距离最大值:</label><input type="number" id='cameraDistanceMaxValue' style="width:50px"
size="5"><br />
<label for="volume">相机距离:</label><b id='cameraDistanceValue'>xx</b><br />
<input type="range" id="cameraDistance" min="0" max="100" style="display: block;width: 100%">
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading">
<div class="input-control has-label-left">
<input id="schemeName" type="text" class="form-control" placeholder="">
<label for="schemeName" class="input-control-label-left"><i class="icon icon-edit"></i>方案名</label>
</div>
</div>
<div class="panel-body">
<div class="dropdown">
<button class="btn btn-block" data-toggle="dropdown">组件选择 <span class="caret"></span></button>
<ul class="dropdown-menu" id="componentList">
<li><a data-toggle="modal" data-target="#addComponentModal"><i class="icon icon-plus"></i>添加新组件</a></li>
</ul>
</div>
<div>
<h4 id="componentTitle">请先选择部件</h4>
<div class="list-group" id="modelList">
</div>
<button id="delComponent" class="btn btn-danger pull-right" style="display: none;margin-left:10px;">删除该组件</button>
<button id="textureManagerment" class="btn pull-right" style="display: none">贴图管理</button>
</div>
</div>
<div class="panel-footer">
<form id="uploadForm" enctype="multipart/form-data">
<input type="file" name="file" id="file" style="display: none" />
</form>
<button class="btn btn-primary btn-block disabled" id="upload">上传模型</button>
<button class="btn btn-success btn-block" id="saveScheme">保存方案</button>
</div>
</div>
<div class='pull-right' style='margin-right: 10px'><a href='/home'>返回主页</a></div>
</div>
<!-- 模态框:添加组件 -->
<div class="modal fade" id="addComponentModal">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button>
<h4 class="modal-title">添加新组件</h4>
</div>
<div class="modal-body">
<input type="text" class="form-control" id="componentName" placeholder="组件名称">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="addComponent">添加</button>
</div>
</div>
</div>
</div>
<!-- 模态框:材质管理 -->
<div class="modal fade" id="textureManagermentModal">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button>
<h4 class="modal-title">贴图管理</h4>
</div>
<div class="modal-body">
<div id="textureList">
</div>
</div>
<div class="modal-footer">
<!-- 贴图上传 -->
<form id="uploadTextureForm" enctype="multipart/form-data">
<input type="file" name="file" id="textureFile" style="display: none" />
</form>
<button class="btn btn-primary" id="textureUpload">上传贴图</button>
<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-left: 10px">确定</button>
</div>
</div>
</div>
</div>
<!-- 模态框:修改模型名字 -->
<div class="modal fade" id="changeModelNameModal">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button>
<h4 class="modal-title">修改</h4>
</div>
<div class="modal-body">
<input type="text" class="form-control" id="modelName" placeholder="模型名称">
</div>
<div class="modal-footer">
<button class="btn btn-primary" id="changeModelName">确定修改</button>
<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-left: 10px">取消</button>
</div>
</div>
</div>
</div>
<!-- 图片裁切 -->
<canvas id='compress' style='display: none'></canvas>
<script src="/js/createScheme.js"></script>
</body>
</html>