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

culling the "wires" in the background #2

Open
fils opened this issue Jul 7, 2017 · 2 comments
Open

culling the "wires" in the background #2

fils opened this issue Jul 7, 2017 · 2 comments

Comments

@fils
Copy link

fils commented Jul 7, 2017

First.. this is cool and amazingly easy. I could really see me using this in some of the visualizations I do for scientific drilling data from NSF.

Second.. I am not a graphics person.. so forgive the poorly worded question..

The visuals are ncie, but might get a bit confusing given the wireframe aspect of these where one can see through to the continent coastlines on the other side of the globe.

Is there there any chance in the code base to enable a situation where the globe surface is opaque?

regardless.. thanks.. would love to see more of these types of packages in Go for geospatial data

@mmcloughlin
Copy link
Owner

Thanks for your interest in the project!

I agree this would be a great feature. It's definitely possible but it may be a non-trivial change, I'd have to do some more research to pin this down. A related change that might help the confusion you mention is to more aggressively fade into the background.

At the moment this package simply performs the translation from geographical to cartesian coordinates and delegates to the pinhole library for rendering. So I think it would require a change to the underlying pinhole library.

I think the pinhole lineWidthAtZ function will be a good place to experiment.

https://github.com/tidwall/pinhole/blob/86ba04e3523bd03ebff51eac8dd0865c9dc9305e/pinhole.go#L607

@joeblew99
Copy link

That's a great idea !

In the art world it's called the recession if I remember.
All architects are trained to use different pen thickness depending how close to the camera you are.
It really adds a sense of depth and makes it's more intuitive to use stupid humans :)

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

No branches or pull requests

3 participants