当前位置:网站首页>Three. JS VR house viewing
Three. JS VR house viewing
2022-07-05 22:59:00 【yzhSWJ】
Code
<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";
// Initialize the scene
const scene = new THREE.Scene();
// Initialize camera
const camera = new THREE.PerspectiveCamera(
75,
window.innerWidth / window.innerHeight,
0.1,
1000
);
// Set camera position
camera.position.z = 0.1;
// Initialize the renderer
const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.inn
边栏推荐
- leecode-学习笔记
- a-tree 树的全部展开和收起
- 一文搞定class的微观结构和指令
- Double pointer of linked list (fast and slow pointer, sequential pointer, head and tail pointer)
- Evolution of APK reinforcement technology, APK reinforcement technology and shortcomings
- Selenium+Pytest自动化测试框架实战
- The code generator has deoptimised the styling of xx/typescript. js as it exceeds the max of 500kb
- [digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]
- Tiktok__ ac_ signature
- openresty ngx_lua正则表达式
猜你喜欢
Post-90s tester: "after joining Ali, this time, I decided not to change jobs."
【Note17】PECI(Platform Environment Control Interface)
我对新中台模型的一些经验思考总结
CJ mccullem autograph: to dear Portland
Nangou Gili hard Kai font TTF Download with installation tutorial
Masked Autoencoders Are Scalable Vision Learners (MAE)
d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
【无标题】
The method and principle of viewing the last modification time of the web page
Element positioning of Web Automation
随机推荐
Common JVM tools and optimization strategies
Boring boring
Starting from 1.5, build a micro Service Framework -- log tracking traceid
链表之双指针(快慢指针,先后指针,首尾指针)
VOT Toolkit环境配置与使用
One article deals with the microstructure and instructions of class
Arduino measures AC current
Element operation and element waiting in Web Automation
513. Find the value in the lower left corner of the tree
SPSS analysis of employment problems of college graduates
终于搞懂什么是动态规划的
Selenium+Pytest自动化测试框架实战
Global and Chinese market of diesel fire pump 2022-2028: Research Report on technology, participants, trends, market size and share
从 1.5 开始搭建一个微服务框架——日志追踪 traceId
LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
一文搞定JVM的内存结构
How can easycvr cluster deployment solve the massive video access and concurrency requirements in the project?
TCC of distributed solutions
Unity Max and min constraint adjustment
一文搞定JVM常见工具和优化策略