[英]Loading a model into the 2D/3D viewer - Autodesk Forge
I'm trying to run the Autodesk viewer-navigation.sample
link on my machine but I get just a loading screen and nothing happens. 我试图在我的机器上运行Autodesk
viewer-navigation.sample
链接 ,但是我只有一个加载屏幕,什么也没发生。
I think it's because I haven't loaded the model, I'm not sure I understand what it means to do: 我认为这是因为我尚未加载模型,我不确定我是否理解要执行的操作:
To prepare the models, run the Initial Setup endpoint.
要准备模型,请运行“初始设置”端点。
But when I navigate to http://localhost:3000/forge/initialsetup when the server is running I get: Cannot GET /forge/initialsetup
但是当服务器运行时导航到http:// localhost:3000 / forge / initialsetup时,我得到:
Cannot GET /forge/initialsetup
I did set in the Autoforge app the callback url to be http://localhost:3000/api/forge/callback/oauth
我确实在Autoforge应用中将回调URL设置为
http://localhost:3000/api/forge/callback/oauth
I also did run: 我也跑了:
npm install
set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>>
set FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>>
What else can be done to make it work? 还有什么可以使它起作用的呢?
As a temporary workaround, till we'll fix it, you could try either define a FORGE_BUCKET env variable: 作为临时的解决方法,直到我们解决它,您可以尝试定义FORGE_BUCKET env变量:
set FORGE_BUCKET=someuniquename2d3d
or within source code (forge.js) change the line 45: 或在源代码(forge.js)中更改第45行:
var ossBucketKey = process.env.FORGE_BUCKET || 'navigationsample3d2d';
by replacing the 'navigationsample3d2d' string with something like 'someveryuniquename2d3d' . 通过将“ navigationsample3d2d”字符串替换为“ someveryuniquename2d3d”之类的内容 。
This should work. 这应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.