当前位置:网站首页>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
边栏推荐
- thinkphp5.1跨域问题解决
- Distributed solution selection
- VIM tail head intercept file import
- Thoroughly understand JVM class loading subsystem
- H5c3 advanced - player
- All expansion and collapse of a-tree
- Event trigger requirements of the function called by the event trigger
- Nacos installation and service registration
- 2022 Software Test Engineer salary increase strategy, how to reach 30K in three years
- Un article traite de la microstructure et des instructions de la classe
猜你喜欢
Overview of Fourier analysis
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
MoCo: Momentum Contrast for Unsupervised Visual Representation Learning
Fix the memory structure of JVM in one article
[speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
Common JVM tools and optimization strategies
Codeforces Global Round 19
Double pointer of linked list (fast and slow pointer, sequential pointer, head and tail pointer)
如何快速理解复杂业务,系统思考问题?
[untitled]
随机推荐
Starting from 1.5, build a micro Service Framework -- log tracking traceid
如何快速理解复杂业务,系统思考问题?
Composition of interface
d3dx9_ How to repair 31.dll_ d3dx9_ 31. Solution to missing DLL
openresty ngx_lua正則錶達式
Exponential weighted average and its deviation elimination
Lesson 1: serpentine matrix
Go language learning tutorial (XV)
一文搞定class的微觀結構和指令
Three.js-01 入门
Why does the C# compiler allow an explicit cast between IEnumerable&lt; T&gt; and TAlmostAnything?
查看网页最后修改时间方法以及原理简介
第一讲:蛇形矩阵
First, redis summarizes the installation types
I closed the open source project alinesno cloud service
Spectrum analysis of ADC sampling sequence based on stm32
TypeError: this. getOptions is not a function
Opencv judgment points are inside and outside the polygon
Distributed resource management and task scheduling framework yarn
Metasploit(msf)利用ms17_010(永恒之蓝)出现Encoding::UndefinedConversionError问题