当前位置:网站首页>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
边栏推荐
- Solve the problem of "no input file specified" when ThinkPHP starts
- [speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
- Double pointeur de liste liée (pointeur rapide et lent, pointeur séquentiel, pointeur de tête et de queue)
- 分布式解决方案之TCC
- 我对新中台模型的一些经验思考总结
- Binary tree (II) -- code implementation of heap
- 利用LNMP实现wordpress站点搭建
- Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
- How to create a thread
- [secretly kill little buddy pytorch20 days] - [Day2] - [example of picture data modeling process]
猜你喜欢
[speech processing] speech signal denoising and denoising based on MATLAB low-pass filter [including Matlab source code 1709]
一文搞定JVM的内存结构
Simple and beautiful method of PPT color matching
一文搞定class的微观结构和指令
Tensor attribute statistics
a-tree 树的全部展开和收起
Nangou Gili hard Kai font TTF Download with installation tutorial
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
Navigation day answer applet: preliminary competition of navigation knowledge competition
Finally understand what dynamic planning is
随机推荐
EasyCVR集群部署如何解决项目中的海量视频接入与大并发需求?
Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
Global and Chinese markets for welding products 2022-2028: Research Report on technology, participants, trends, market size and share
Solve the problem of "no input file specified" when ThinkPHP starts
2022.02.13 - SX10-30. Home raiding II
Marginal probability and conditional probability
Exponential weighted average and its deviation elimination
第一讲:蛇形矩阵
2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
【Note17】PECI(Platform Environment Control Interface)
Element operation and element waiting in Web Automation
Postman core function analysis - parameterization and test report
Global and Chinese market of networked refrigerators 2022-2028: Research Report on technology, participants, trends, market size and share
VOT toolkit environment configuration and use
抖音__ac_signature
终于搞懂什么是动态规划的
How to create a thread
fibonacci search
a-tree 树的全部展开和收起
从 1.5 开始搭建一个微服务框架——日志追踪 traceId