123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <!DOCTYPE html>
- <html lang="">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui, viewport-fit=cove">
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
- <title><%= htmlWebpackPlugin.options.title %></title>
- <script>
- </script>
- <style>
- /* 背景图样式 */
- .vr-bg {
- z-index: 30;
- position: fixed;
- background-repeat: no-repeat;
- background-size: auto 100%;
- background-position: center;
- background-color: rgba(117, 117, 117, 0.75);
- }
-
- .model-action-container {
- position: fixed;
- top: 50px;
- right: 0;
- width: auto;
- height: auto;
- background: rgba(0, 0, 0, 0.75);
- border-radius: 4px;
- overflow: hidden;
- z-index: 200;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- /* display: none; */
- }
-
- .model-action-container .model-action-item {
- width: auto;
- height: 36px;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- margin: 0 20px;
- }
-
- .model-action-container .model-action-item:not(:first-child) {
- border-top: 1px dashed #fff;
- }
-
- .model-action-container .model-action-item .action-title {
- height: 25px;
- line-height: 25px;
- font-size: 18px;
- text-align: center;
- color: #fff;
- }
-
- .model-action-container .model-action-item .action-btn {
- position: relative;
- padding: 0px 30px;
- margin: 0 20px;
- color: #21ebff;
- text-decoration: none;
- font-size: 18px;
- text-transform: uppercase;
- transition: 0.5s;
- overflow: hidden;
- -webkit-box-reflect: below 1px linear-gradient(transparent, #0003);
- }
-
- .model-action-container .model-action-item .action-btn:hover {
- background: #21ebff;
- color: #111;
- box-shadow: 0 0 40px #21ebff;
- transition-delay: 0.5s;
- }
-
- .model-action-container .model-action-item .action-btn:nth-child(1) {
- filter: hue-rotate(115deg);
- }
-
- .model-action-container .model-action-item .action-btn:nth-child(3) {
- filter: hue-rotate(270deg);
- }
-
- .model-action-container .model-action-item .action-btn::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 10px;
- height: 10px;
- border-top: 2px solid #21ebff;
- border-left: 2px solid #21ebff;
- transition: 0.5s;
- transition-delay: 0.5s;
- }
-
- .model-action-container .model-action-item .action-btn:hover::before {
- width: 100%;
- height: 100%;
- transition-delay: 0s;
- }
-
- .model-action-container .model-action-item .action-btn::after {
- content: '';
- position: absolute;
- right: 0;
- bottom: 0;
- width: 10px;
- height: 10px;
- border-bottom: 2px solid #21ebff;
- border-right: 2px solid #21ebff;
- transition: 0.5s;
- transition-delay: 0.5s;
- }
-
- .model-action-container .model-action-item .action-btn:hover::after {
- width: 100%;
- height: 100%;
- transition-delay: 0s;
- }
-
- .model-action-container .input-container {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- margin: 20px 20px;
- }
-
- .model-action-container .input-container .input-field {
- margin-top: 20px;
- margin-left: 20px;
- border: 1px solid #ccc;
- border-radius: 4px;
- padding: 6px 12px;
- font-size: 14px;
- outline: none;
- color: #333;
- }
-
- .model-action-container .input-container .input-field:focus {
- outline: none;
- }
-
-
- .mode-panel {
- position: fixed;
- right: 20px;
- bottom: 20px;
- width: 100px;
- height: auto;
- display: flex;
- flex-direction: column;
- justify-content: start;
- align-items: center;
- }
-
- .mode-btn {
- width: 100px;
- text-align: center;
- margin-top: 10px;
- }
- canvas {
- border-radius: 28px;
- }
- </style>
- </head>
- <body>
- <noscript>
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
- </noscript>
- <div id="app"></div>
- <!-- built files will be auto injected -->
- <div id="log"></div>
- <!-- 主显示承载器 -->
- <div id="tag-billboards"></div>
- <div id="pano-size"></div>
- <div class="mode-panel">
- <button id="panorama-btn" class="mode-btn" style="display: none;" data-mode="panorama">全景</button>
- <button id="dollhouse-btn" class="mode-btn" style="display: none;" data-mode="dollhouse">3d</button>
- <button id="floorplan-btn" class="mode-btn" style="display: none;" data-mode="floorplan">平面</button>
- </div>
- <script>
- window.renderWidth = 0;
- window.renderHeight = 0;
- </script>
- </body>
- </html>
- <script src="./sdk/HOUSEPLAY.js"></script>
- <script src="./sdk/FBXLoader.js"></script>
- <script src="./sdk/DRACOLoader.js"></script>
- <script src="./sdk/SkeletonUtils.js"></script>
- <script src="./sdk/inflate.min.js"></script>
- <script src="./sdk/OBJLoader.js"></script>
- <script src="./sdk/EffectComposer.js"></script>
- <script src="./sdk/RenderPass.js"></script>
- <script src="./sdk/ShaderPass.js"></script>
- <script src="./sdk/OutlinePass.js"></script>
- <script src="./sdk/OrbitControls.js"></script>
|