virtual-world-framework / vwf

Virtual World Framework
https://virtual.wf
Other
142 stars 53 forks source link

Cesium demo problem #415

Closed lazydino closed 9 years ago

lazydino commented 9 years ago

Hi,

Anyone tried cesium demo? It seems run fine with 'localhost:3000/public/agi/cesium', but will not load the globe if access demo remotely via other machine with its NIC IP '192.168.1.199:3000/public/agi/cesium'. Chrome console shows 'Load timeout for modules:' for a bunch of vwf components like vwf/model/cesium/core/Transforms, vwf/model/cesium.....

It does not look like a browser caches issue. Any idea why this happened?

scottnc27603 commented 9 years ago

@lazydino Give the updated branch to version 1.2 of Cesium a try. There's an outstanding pull request that I'd like to get merged back, but there's no current time table for the PR to be reviewed. If this fixes the issue, then that might help the review get pushed through.

Basically, we are loading the sources now, instead of the library as a minified single file. I don't remember how to increase the timeout, but that might help out the issue as well. Are you running the ruby or nodejs server?

https://github.com/virtual-world-framework/vwf/pull/381

https://github.com/virtual-world-framework/vwf/tree/branch/cesium-1.2

Scott

lazydino commented 9 years ago

Thanks, will try the cesium 1.2 code branch. I run nodejs v0.10.26 BTW, Cesiumjs.org has release 1.4 on December.

scottnc27603 commented 9 years ago

@lazydino Yea, I'd like to find a way to keep our version updated, but at this point the schedule has several other pending issues to be resolved. Hopefully updating to the latest version will be easier now that 1.0 has been released.

I had made an update to the nodejs server recently that fixed a timeout issue with cesium, and that was merged back to development? BTW, what branch were you using?

Scott

lazydino commented 9 years ago

I tried with master. Will check out development.

scottnc27603 commented 9 years ago

https://github.com/virtual-world-framework/vwf/commit/8c6703e64d8c4353ff82252614436debe4e97e78

There's the changed that fixed the issue.

lazydino commented 9 years ago

Try both master and development branches with the fix, it still complains timeout if I tried to view the demo from other PCs....

scottnc27603 commented 9 years ago

I just tried with development(server running on a macbook pro), and got the application instance(2nd, 1st instance loaded on the same macbook pro) to load on my iPhone 6+. I was kind of surprised that it worked as well as it did. I'm not an expert on servers, so maybe someone else has a idea about what the problem could be.

lazydino commented 9 years ago

Good to know iPhone work, I guess ios 8 now supports WebGL. My test is running server and client on two Windows 7 PCs . Simple test like duck runs fine, but cesium demo times out on remote client. Will see what happen when test against an EC2 Linux server tomorrow...

scottnc27603 commented 9 years ago

The time out issue has been a problem since we changed the loading style. Good luck, and keep me posted.

lazydino commented 9 years ago

Just clone the repos and check out master branch on our EC2 server, Still got the same result. The test url is http://54.214.242.3:3000/public/agi/cesium I just ran 'node node-server.js' without config.json.

scottnc27603 commented 9 years ago

I'm getting the same result at https://demo.virtual.wf/agi/cesium/

This is loading the first instance, so master is definitely not happy. Our development server is down right now, I can't test that. Most everyone on the team is on vacation this week, so I'll be able to address this better on Tuesday when I am back.

On Tue, Dec 30, 2014 at 4:35 PM, Reggie Chen notifications@github.com wrote:

Just clone the repos and check out master branch on our EC2 server, Still got the same result. The test url is http://54.214.242.3:3000/public/agi/cesium I just ran 'node node-server.js' without config.json.

— Reply to this email directly or view it on GitHub https://github.com/virtual-world-framework/vwf/issues/415#issuecomment-68401093 .

scottnc27603 commented 9 years ago

@lazydino

Can you try loading: http://demo.virtual.wf/agi/cesium/

lazydino commented 9 years ago

It runs fine now. Where can I pull and test the update code?

scottnc27603 commented 9 years ago

Does https://demo.virtual.wf/agi/cesium/ load?

On Thu, Jan 22, 2015 at 5:21 PM, Reggie Chen notifications@github.com wrote:

It runs fine now. Where can I pull and test the update code?

— Reply to this email directly or view it on GitHub https://github.com/virtual-world-framework/vwf/issues/415#issuecomment-71111290 .

scottnc27603 commented 9 years ago

@lazydino I've updated to the latest version of Cesium, so you should try out that branch to see if that fixes any of the issues you've been seeing.

lazydino commented 9 years ago

Is the demo site down? I can't access demo.virtual.wf....

davideaster commented 9 years ago

The SSL server was down this morning, but the site is up now.

scottnc27603 commented 9 years ago

Our Cesium support has been updated to version 1.5. I don't think that anything has changed as far as loading, but you might want to test the cesium app again. Please note that most all of the applications have been moved into a separate repo.

https://github.com/virtual-world-framework/vwf-apps