当前位置:网站首页>Three.JS VR看房
Three.JS VR看房
2022-07-05 22:46:00 【yzhSWJ】
代码
<template>
<div class="container" ref="container"></div>
</template>
<script setup>
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { RGBELoader } from "three/examples/jsm/loaders/RGBELoader";
import { ref, onMounted } from "vue";
// 初始化场景
const scene = new THREE.Scene();
// 初始化相机
const camera = new THREE.PerspectiveCamera(
75,
window.innerWidth / window.innerHeight,
0.1,
1000
);
// 设置相机位置
camera.position.z = 0.1;
// 初始化渲染器
const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.inn
边栏推荐
- openresty ngx_lua请求响应
- Nail error code Encyclopedia
- Common model making instructions
- The code generator has deoptimised the styling of xx/typescript.js as it exceeds the max of 500kb
- 2022软件测试工程师涨薪攻略,3年如何达到30K
- Metaverse ape ape community was invited to attend the 2022 Guangdong Hong Kong Macao Great Bay metauniverse and Web3.0 theme summit to share the evolution of ape community civilization from technology
- Qtquick3d real time reflection
- 119. Pascal‘s Triangle II. Sol
- 2022.02.13 - SX10-30. Home raiding II
- 鏈錶之雙指針(快慢指針,先後指針,首尾指針)
猜你喜欢
一文搞定JVM的内存结构
513. Find the value in the lower left corner of the tree
Google Maps case
30 optimization skills about mysql, super practical
Common model making instructions
Nangou Gili hard Kai font TTF Download with installation tutorial
Editor extensions in unity
SPSS analysis of employment problems of college graduates
fibonacci search
终于搞懂什么是动态规划的
随机推荐
Navigation day answer applet: preliminary competition of navigation knowledge competition
TCC of distributed solutions
Binary tree (II) -- code implementation of heap
如何快速理解复杂业务,系统思考问题?
一文搞定JVM常见工具和优化策略
Boring boring
Un article traite de la microstructure et des instructions de la classe
请求二进制数据和base64格式数据的预览显示
Overriding equals() & hashCode() in sub classes … considering super fields
Editor extensions in unity
解决thinkphp启动时“No input file specified”的问题
Request preview display of binary data and Base64 format data
APK加固技术的演变,APK加固技术和不足之处
链表之双指针(快慢指针,先后指针,首尾指针)
Vision Transformer (ViT)
Global and Chinese market of diesel fire pump 2022-2028: Research Report on technology, participants, trends, market size and share
VOT toolkit environment configuration and use
Nanjing: full use of electronic contracts for commercial housing sales
Global and Chinese market of water treatment technology 2022-2028: Research Report on technology, participants, trends, market size and share
Methods modified by static