Coder Social home page Coder Social logo

pious68 / three-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yutingtao/three-project

0.0 0.0 0.0 9.25 MB

Vue.js + three.js实现的3D场景、3D模型web端展示,支持场景、模型切换、是否自动旋转、展示区域是否铺满浏览器

Home Page: https://yutingtao.github.io/three-project/

JavaScript 68.08% CSS 11.93% HTML 4.19% Vue 13.11% SCSS 2.69%

three-project's Introduction

three-project

介绍

Vue.js + three.js实现的3D场景、3D模型web端展示,支持场景、模型切换、是否自动旋转、展示区域是否铺满浏览器

使用案例

<template>
    <ThreeView class="three-box" :sceneUrl="sceneUrl" :modelUrl="modelUrl"></ThreeView>
</template>

<script>
import ThreeView from '../components/three/three-view.vue'

export default {
    components: { ThreeView },
    data() {
        return {
            sceneUrl: 'file/scene/mall.hdr',
            modelUrl: 'file/helicopter.gltf',
        }
    }
};
</script>

配置参数

// 场景纹理url
sceneUrl: {
    type: String,
    required: true
},
// 模型url
modelUrl: {
    type: String
},
// 是否自动旋转
autoRotate: {
    type: Boolean,
    default: false
},
// 生成的canvas是否铺满浏览器
isFullBrowser: {
    type: Boolean,
    default: true
}

three-project's People

Contributors

yutingtao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.