当前位置:网站首页>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
边栏推荐
- Registration and skills of hoisting machinery command examination in 2022
- Post-90s tester: "after joining Ali, this time, I decided not to change jobs."
- openresty ngx_ Lua request response
- LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
- Starting from 1.5, build a micro Service Framework -- log tracking traceid
- Paddle Serving v0.9.0 重磅发布多机多卡分布式推理框架
- 2022 registration examination for safety management personnel of hazardous chemical business units and simulated reexamination examination for safety management personnel of hazardous chemical busines
- Common JVM tools and optimization strategies
- [untitled]
- Arduino 测量交流电流
猜你喜欢
Leetcode weekly The 280 game of the week is still difficult for the special game of the week's beauty team ~ simple simulation + hash parity count + sorting simulation traversal
LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
Ieventsystemhandler event interface
First, redis summarizes the installation types
Opencv judgment points are inside and outside the polygon
实现反向代理客户端IP透传
Post-90s tester: "after joining Ali, this time, I decided not to change jobs."
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
[speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
openresty ngx_ Lua request response
随机推荐
关于MySQL的30条优化技巧,超实用
PLC编程基础之数据类型、变量声明、全局变量和I/O映射(CODESYS篇 )
openresty ngx_ Lua request response
Masked Autoencoders Are Scalable Vision Learners (MAE)
Global and Chinese markets of industrial pH meters 2022-2028: Research Report on technology, participants, trends, market size and share
利用LNMP实现wordpress站点搭建
Go language learning tutorial (XV)
Binary tree (III) -- heap sort optimization, top k problem
Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
分布式解决方案选型
Nangou Gili hard Kai font TTF Download with installation tutorial
2022.02.13 - SX10-30. Home raiding II
LeetCode102. Sequence traversal of binary tree (output by layer and unified output)
Lesson 1: serpentine matrix
All expansion and collapse of a-tree
Common JVM tools and optimization strategies
Why does the C# compiler allow an explicit cast between IEnumerable&lt; T&gt; and TAlmostAnything?
记录几个常见问题(202207)
一文搞定JVM的内存结构