当前位置:网站首页>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
边栏推荐
- 一文搞定JVM常见工具和优化策略
- Distributed resource management and task scheduling framework yarn
- Vision Transformer (ViT)
- Thinkphp5.1 cross domain problem solving
- 鏈錶之雙指針(快慢指針,先後指針,首尾指針)
- Ieventsystemhandler event interface
- 30 optimization skills about mysql, super practical
- Ultrasonic sensor flash | LEGO eV3 Teaching
- 二叉树(二)——堆的代码实现
- 70. Climbing Stairs. Sol
猜你喜欢
Event trigger requirements of the function called by the event trigger
Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
opencv 判断点在多边形内外
Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
Codeforces Global Round 19
Post-90s tester: "after joining Ali, this time, I decided not to change jobs."
[digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]
Nanjing: full use of electronic contracts for commercial housing sales
2022.02.13 - SX10-30. Home raiding II
链表之双指针(快慢指针,先后指针,首尾指针)
随机推荐
[secretly kill little buddy pytorch20 days] - [Day2] - [example of picture data modeling process]
Global and Chinese market of networked refrigerators 2022-2028: Research Report on technology, participants, trends, market size and share
Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
一文搞定class的微觀結構和指令
audiopolicy
90后测试员:“入职阿里,这一次,我决定不在跳槽了”
How to reverse a string fromCharCode? - How to reverse String. fromCharCode?
700. Search in a Binary Search Tree. Sol
从 1.5 开始搭建一个微服务框架——日志追踪 traceId
【Note17】PECI(Platform Environment Control Interface)
MCU case -int0 and INT1 interrupt count
The introduction to go language is very simple: String
Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
二叉树(二)——堆的代码实现
Paddy serving v0.9.0 heavy release multi machine multi card distributed reasoning framework
Nacos installation and service registration
513. Find the value in the lower left corner of the tree
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
Yiwen gets rid of the garbage collector
Common model making instructions