无法显示加载的数据 [英] Not able to visualize a loaded data

查看:61
本文介绍了无法显示加载的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始测试xtk,立方体的第一个样本没有问题.现在,我尝试加载外部数据,但将其本地存储到我的文件系统中(只需下载示例05的头骨示例)并放在html的同一目录中.我什么都看不到.我也已经运行了测试,并且可视化还可以,但是当我尝试打开其中一个测试html时,它无法可视化示例.路径有问题吗?我真的试图让自己处于最简单的情况,但是我什么也没看到.我使用的是Chrome,当我查看演示时,一切正常.有什么建议吗?

I just start to test xtk, and no problem with the first sample of the cube. I now try to load an external data, but stored locally into my filesystem (just download skull sample of example 05) and put in the same directory of the html. I'm not able to see anything. I've also run the tests and the visualization is ok but when I try to open one of test htmls, it isn't able to visualize the sample. Is there some problem of path? I really try to put myself in the most simple situation but I don't see anything. I use Chrome, and when I check the demos, it is all ok. Any suggestion?

推荐答案

这似乎是源安全性检查.如果打开Javascript控制台,则会看到类似"403错误"的信息.

This seems to be the origin security check. If you open the Javascript Console, you would prolly see something like '403 error'..

要在本地进行测试,您必须使用参数"-allow-file-access-from-files"启动chrome,或者仅在html文件的目录中运行"python -m SimpleHTTPServer"之类的网络服务器,然后访问在浏览器中 http://localhost:8000/

To test locally, you have to start chrome with an argument '-allow-file-access-from-files' or you just run a webserver like 'python -m SimpleHTTPServer' in the directory of your html file and access then in the browser http://localhost:8000/

以下是更多信息:

Google Chrome浏览器--allowChrome Beta 8禁用了-file-access-from-files http://robspangler.com/blog/jquery-load-doesnt-work-in-chrome/

这篇关于无法显示加载的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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