Three.JS项目-加载程序不会加载本地模型(带有屏幕截图) [英] Three.JS project - loaders don't load local models (with screenshot)

查看:452
本文介绍了Three.JS项目-加载程序不会加载本地模型(带有屏幕截图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例项目不会将3D模型加载到场景中.或加载,但不显示,idk.

Example projects don't load 3d models to the scene. Or load but don't display, idk.

我都尝试了-我下载的three.js存档中的示例,还有我自己的具有自己模型的项目.

I tried both - the examples from three.js archive that I downloaded, also my own projects with my own models.

所以我只需打开three.js-master文件夹,在examples文件夹中打开索引页面,浏览示例列表.除装载程序示例外,所有示例均适用.我只是仔细阅读了所有这些内容,没有一种格式可用,不是obj,也不是fbx.当地的东西怎么了?在线示例可以工作,但是如果我从那里复制代码,则行不通.

So I simply open three.js-master folder, open the index page in the examples folder, go through the list of examples. All examples work except the loaders examples. I just go through all of them and not a single format works, not obj, not fbx. What's wrong with local stuff? Online examples work but if I copy code from there it doesn't work.

查看示例

问题

也许有人有本地工作的例子?有人可以在您的桌面上打开那个怪异的three.js主文件夹并在本地运行任何示例吗?我的意思是网格加载程序的示例.我已经筋疲力尽了,想让它工作一个星期……

Maybe someone has a locally working example? Can someone just open that freaking three.js master folder on your desktop and run any example locally? I mean an example with a mesh loader. I'm already exhausted trying to make it work for a week...

推荐答案

您必须通过本地Web服务器运行或更改浏览器的本地文件安全策略.

You have to run through a local webserver or change your browsers local file security policy.

这一切都在Three.js Wiki上进行了概述,网址为...

It is all outlined at the three.js wiki at... Three.js, how to run things locally.

这篇关于Three.JS项目-加载程序不会加载本地模型(带有屏幕截图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆