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

Issue with viewer default camera settings on mainline #48

Open
bdpedigo opened this issue Aug 12, 2024 · 1 comment
Open

Issue with viewer default camera settings on mainline #48

bdpedigo opened this issue Aug 12, 2024 · 1 comment

Comments

@bdpedigo
Copy link
Contributor

from nglui import statebuilder


client = CAVEclient("minnie65_public", version=1078)

img_layer, seg_layer = statebuilder.helpers.from_client(client)

sb = statebuilder.StateBuilder(
    layers=[img_layer, seg_layer]
)

sb.render_state(return_as="html", target_site="mainline")

gives a view where the camera is very very zoomed out (note the 200m)

image

my hack has been setting

view_kws={"zoom_3d": 0.001, "zoom_image": 0.0000001}

but would be nice to have the viewer in a reasonable location by default for mainline

@ceesem
Copy link
Collaborator

ceesem commented Aug 26, 2024

This can happen if a resolution is not set directly or via a client. Unfortunately, even if you set an image and 3d zoom in Neuroglancer, if you don't set the resolution the zoom levels will be reset to bonkers values. I posted this as an issue over on Neuroglancer (google/neuroglancer#635), so hopefully that behavior can be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants