Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full Panorama export with Cesium #7937

Open
michaelzwick opened this issue Jun 12, 2019 · 4 comments
Open

Full Panorama export with Cesium #7937

michaelzwick opened this issue Jun 12, 2019 · 4 comments

Comments

@michaelzwick
Copy link

Hi,

I am interested to export a 360° full panorama with Cesium. I think this would be a nice feature. There are two main formats for such a panorama.

An easy way to get the panorama would be like the following description:

https://twitter.com/zwickmichael/status/1136964139987939328

The definition of the camera field of view is an open issue. I could not find a solution to define that as the other parameters like position, orientation, etc.

@OmarShehata
Copy link
Contributor

Thanks for opening this issue @michaelzwick ! I do know you can modify the camera frustum (see https://cesiumjs.org/Cesium/Build/Documentation/Camera.html?classFilter=Camera#frustum). Have you tried that? One issue I see there is that depending on the resolution you're rendering to, you may not be able to render the entire cube map in one framebuffer.

I think it would be nice if there was an easy way to do this, I'm not sure if it should be a core part of the engine or an example built on top.

In terms of capturing canvas output in CesiumJS, Kevin talks about how TerriaJS (built on Cesium) does it in this thread:

https://groups.google.com/d/msg/cesium-dev/I-SN1jx0bvg/Vi0h24vFBgAJ

@sonth-bhsoft
Copy link

sonth-bhsoft commented Nov 29, 2019

Hello @michaelzwick,

Have you made a demo about export pamorama with Cesium yet?

@michaelzwick
Copy link
Author

Hi @OmarShehata

No. I stoped coding a demo when I realised there is no option to define the field of view for the camera. But you will find my deliberations in the first post of this issue.

@mramato
Copy link
Contributor

mramato commented Nov 30, 2019

No. I stoped coding a demo when I realised there is no option to define the field of view for the camera

viewer.scene.camera.frustum.fov allows you to set the field of view, unless you mean that there were limitations to what we support/allow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment