当前位置:网站首页>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
边栏推荐
- 抖音__ac_signature
- 如何创建线程
- Tensor attribute statistics
- 一文搞定垃圾回收器
- Error when LabVIEW opens Ni instance finder
- 点到直线的距离直线的交点及夹角
- 30 optimization skills about mysql, super practical
- 2022.02.13 - SX10-30. Home raiding II
- 我把开源项目alinesno-cloud-service关闭了
- [speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
猜你喜欢
Codeforces Global Round 19
My experience and summary of the new Zhongtai model
[speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
Google Maps case
Distance from point to line intersection and included angle of line
Common model making instructions
一文搞定垃圾回收器
點到直線的距離直線的交點及夾角
Paddle Serving v0.9.0 重磅发布多机多卡分布式推理框架
终于搞懂什么是动态规划的
随机推荐
我对新中台模型的一些经验思考总结
70. Climbing Stairs. Sol
MCU case -int0 and INT1 interrupt count
How to quickly experience oneos
Shelved in TortoiseSVN- Shelve in TortoiseSVN?
Distributed resource management and task scheduling framework yarn
第一讲:蛇形矩阵
TOPSIS code part of good and bad solution distance method
audiopolicy
Golang writes the opening chapter of selenium framework
d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
2022.02.13 - SX10-30. Home raiding II
Overview of Fourier analysis
Global and Chinese markets for reciprocating seal compressors 2022-2028: Research Report on technology, participants, trends, market size and share
Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
The code generator has deoptimised the styling of xx/typescript.js as it exceeds the max of 500kb
Ieventsystemhandler event interface
分布式解决方案之TCC
【无标题】
Error when LabVIEW opens Ni instance finder