Yanzengyong/threejs-login-view
关于
login view of threejs + vue3
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文一个3D效果的登陆页面
预览

运行项目
Three.js and Vue.js Integration
This project demonstrates how to integrate Three.js and Vue.js, two popular JavaScript libraries, to create interactive and dynamic 3D graphics in a Vue.js application.
Getting Started To run this project, follow these steps:
Clone the repository to your local machine. Install the dependencies using npm install. Start the development server using npm run serve. Built With Three.js - A JavaScript library used to create and display animated 3D computer graphics in a web browser. Vue.js - A progressive framework for building user interfaces. Vue Three.js - A Vue.js plugin for using Three.js. Usage
To use Three.js in a Vue.js component, you first need to install the vue-threejs plugin. You can do this using npm: npm install vue-threejs
You can do this using yarn: yarn add vue-threejs
Next, import the VueThreeJS plugin in your Vue.js component: import VueThreeJS from 'vue-threejs';
Now you can use the VueThreeJS component to render a Three.js scene:
<template>
<VueThreeJS>
<three-scene>
<three-perspective-camera :position="{ x: 0, y: 0, z: 10 }"></three-perspective-camera>
<three-mesh :geometry="sphereGeometry" :material="sphereMaterial"></three-mesh>
</three-scene>
</VueThreeJS>
</template>
<script>
import VueThreeJS from 'vue-threejs';
import { SphereGeometry, MeshBasicMaterial, Mesh } from 'three';
export default {
components: {
VueThreeJS,
},
data() {
return {
sphereGeometry: new SphereGeometry(5),
sphereMaterial: new MeshBasicMaterial({ color: 0xff0000 }),
};
},
components: {
VueThreeJS,
ThreeScene,
ThreePerspectiveCamera,
ThreeMesh,
},
};
</script>
License This project is licensed under the MIT License - see the LICENSE file for details.
git clone https://github.com/Yanzengyong/threejs-login-view.git
yarn
yarn serve
探索相关项目
加载中…