three+JSONLoader加载三维模型效果代码

代码语言:html

所属分类:三维

代码描述:three+JSONLoader加载三维模型效果代码

代码标签: three JSONLoader 加载 三维 模型

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
    <title>BFW NEW PAGE</title>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.92.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/OrbitControls.min.js"></script>
    <style>
    </style>
</head>

<body>
    <script type="text/javascript">
        var camera, scene, renderer, mesh, loader,controls;
    
    init();
    animate();
    
    function init() {
    
        camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 10000 );
        camera.position.z = 1000;
    
        scene = new THREE.Scene();
    
        loader = new THREE.JSONLoader();
    
        loader.load( &.........完整代码请登录后点击上方下载按钮下载查看

网友评论0