当前位置:网站首页>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
边栏推荐
- VOT toolkit environment configuration and use
- 2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
- openresty ngx_lua正則錶達式
- Metaverse ape ape community was invited to attend the 2022 Guangdong Hong Kong Macao Great Bay metauniverse and Web3.0 theme summit to share the evolution of ape community civilization from technology
- Codeforces Global Round 19
- Fix the memory structure of JVM in one article
- Three.js-01 入门
- PLC编程基础之数据类型、变量声明、全局变量和I/O映射(CODESYS篇 )
- Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
- Roman numeral to integer
猜你喜欢
鏈錶之雙指針(快慢指針,先後指針,首尾指針)
Thoroughly understand JVM class loading subsystem
Hcip day 12 (BGP black hole, anti ring, configuration)
Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
[secretly kill little buddy pytorch20 days] - [Day2] - [example of picture data modeling process]
Finally understand what dynamic planning is
2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
Vision Transformer (ViT)
Spectrum analysis of ADC sampling sequence based on stm32
openresty ngx_lua请求响应
随机推荐
513. Find the value in the lower left corner of the tree
使用rewrite规则实现将所有到a域名的访问rewrite到b域名
分布式解决方案之TCC
Tiktok__ ac_ signature
Postman core function analysis - parameterization and test report
记录几个常见问题(202207)
Vcomp110.dll download -vcomp110 What if DLL is lost
一文搞定JVM的内存结构
Error when LabVIEW opens Ni instance finder
Double pointeur de liste liée (pointeur rapide et lent, pointeur séquentiel, pointeur de tête et de queue)
Global and Chinese markets of industrial pH meters 2022-2028: Research Report on technology, participants, trends, market size and share
The code generator has deoptimised the styling of xx/typescript. js as it exceeds the max of 500kb
Methods modified by static
【无标题】
Openresty ngx Lua regular expression
Hcip day 12 (BGP black hole, anti ring, configuration)
Business introduction of Zhengda international futures company
Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
媒体查询:引入资源
Registration and skills of hoisting machinery command examination in 2022