当前位置:网站首页>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边栏推荐
- 谷歌地图案例
- Navigation day answer applet: preliminary competition of navigation knowledge competition
- Usage Summary of scriptable object in unity
- 一文搞定JVM的内存结构
- VIM tail head intercept file import
- 从 1.5 开始搭建一个微服务框架——日志追踪 traceId
- 2022.02.13 - SX10-30. Home raiding II
- d3dx9_ How to repair 31.dll_ d3dx9_ 31. Solution to missing DLL
- 50. Pow(x, n). O(logN) Sol
- H5c3 advanced - player
猜你喜欢

VOT Toolkit环境配置与使用

513. Find the value in the lower left corner of the tree

我把开源项目alinesno-cloud-service关闭了

Distributed resource management and task scheduling framework yarn

实现反向代理客户端IP透传

Spectrum analysis of ADC sampling sequence based on stm32

一文搞定JVM常见工具和优化策略

Masked Autoencoders Are Scalable Vision Learners (MAE)

2022软件测试工程师涨薪攻略,3年如何达到30K

Business introduction of Zhengda international futures company
随机推荐
Overview of Fourier analysis
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
Ultrasonic sensor flash | LEGO eV3 Teaching
Go语言学习教程(十五)
Nanjing: full use of electronic contracts for commercial housing sales
openresty ngx_lua请求响应
Golang writes the opening chapter of selenium framework
Paddy serving v0.9.0 heavy release multi machine multi card distributed reasoning framework
30 optimization skills about mysql, super practical
QT creator 7-cmake update
One article deals with the microstructure and instructions of class
Why does the C# compiler allow an explicit cast between IEnumerable&lt; T&gt; and TAlmostAnything?
Thinkphp5.1 cross domain problem solving
a-tree 树的全部展开和收起
一文搞定JVM的内存结构
[digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]
分布式解决方案之TCC
Google Maps case
The difference between MVVM and MVC
90后测试员:“入职阿里,这一次,我决定不在跳槽了”