Giter VIP home page Giter VIP logo

webgl-globe's People

Contributors

arodic avatar bluesmoon avatar dependabot[bot] avatar djhoese avatar doug avatar georgealways avatar glampr avatar jonobr1 avatar marr avatar maxhawkins avatar mrdoob avatar sghall avatar trusktr avatar valdean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webgl-globe's Issues

Drawing trajectories along points

I want to draw a curve between two points on the globe. If somebody has done it, I'll be glad to know how. If not, I'll be glad to code it myself and send a PR if this would be of interest. In that case, which part of the code should I put this?

Limit of array values

Is the limit of one series within the array 29849? When I create data with more values I get the error that "Uncaught TypeError: Cannot read property 'x' of undefined" and no globe is created than.

Is it possible to create a hover and clickable area on the globe?

I need a globe where a user can hover and click over some areas on the globe (for examples countries, the sea). I want to change the color of the current hovered country and i also want the user to get redirected to another specific page when he clicks on a country. Is this possible with this webgl-globe library? If not, do you know another library which supports onClick and hover events on the countries and the sea?

Polymer 1.0

Are there any plans of updating this experiment to polymer 1.0?

Polymer Version Not Working

I was told (perhaps wrongly) that the Polymer version of the globe was stable. When I run it, I get three errors and a black screen. Even when running it from python -m http.server 8080's localhost:8080. I get errors about "iterator h" from events.js line 176, errors about reading a property 'DELEGATES' of an undefined object from events.js line 15, and errors at multiple points in polymer-element.js about the getDelegates( ) function not existing. I'm sure these are all related, and if I'm reading what I have right, fixing the problem with "iterator h" might fix the entire thing. But I don't know how to fix the problem, and I'm kind of afraid I'll break it further if I try.

(FYI none of the files have been altered from the state in which I downloaded them).

Globe disappears when screen is resized

Currently, whenever the screen changes sizes at all the whole canvas goes black and will not return regardless of any future resizing/reverting to the original size.

Uncaught TypeError: Cannot read property 'x' of undefined

Hi there,

I'm trying to render 8 different series, each with a different number of points in it (between 2 and 5 points, so really small amount of data).

This seems to cause the following error in the three.min.js library - Uncaught TypeError: Cannot read property 'x' of undefined. If I include less data (so 2 less points in the first series), this error is not thrown and the globe renders correctly. It's almost as though if the first series has more points in it than other series, it causes this error.

Does this mean that all series need to have the same number of points in them? Or that the first series should be the series with the most points? It seems that would be really limiting if that were the case. I hope it's not!

I'd really appreciate some help if at all possible :)

Cheers,
Annie

Not an issue - an idea

I have an idea for a globe where people can register their profile data (including location) and the lines which extrude from the surface are then clickable to reveal that users profile.

Is this at all possible??

Custom Colors and point locations

I want to customize the colour of points on globe based on magnitude. And I need to get the latitude longitude of the point where the user has clicked on the globe. Can you help me with the reverse calculations. Looking forward for support.

Changing the data on the globe

Is there any way to change the data that is displayed on the globe? (ie: animate the data changing over time)

Edit: never mind, just saw the demo. Awesome job!

Cannot run any Globes locally

When I open index.html in the folder globe, there is no globe. This is what it looks like, and I get the error messages logged to console in the bottom right.

screen shot 2016-10-27 at 11 10 42 pm

Keeping animated to true renders all markers flat

Keeping the animated field on true makes all markers render flat on the globe, eg, 0 magnitude. Setting the animated field to false causes the markers to render at their proper magnitudes.

for (i=0;i<data.length;i++) { globe.addData(data[i][1], {format: 'magnitude', name: data[i][0], animated: false}); }

Any ideas on why this is happening, and a fix?

CrossOrigin render Image

I've got this CrossOrigin issue when the image is found here, but the image has no reference (I already tried to erase the origin and setted to anonymous)

image

with this issue the graph just don't render, but when I remove the background it render normally just logging image not found.

Adding (or changing magnitude of) a single point after rendering

I can't seem to figure out how to add a new point -- at a new lat/long -- after the globe has been rendered. I basically want to use this for real-time data, so when a new data point comes in, how can I add the point to the already-rendered globe?

Thanks!!

Labeled json and a small one

Hi everybody

Could someone tell me if it is possible to label each point on json? It could be great to keep organized and easy to use the json file.

Another question is: "Is there any smaller json file than the original?" I would like to start adding points but the original file is too large and difficult to read.

json

Thanks in advance
Ezequias Rocha

Auto Rotate

Dose any one known a way to auto rotate the globe with out using the mouse. Like have Rotations per minute or something like that?

The problem of the last data render

When I rewrite the JSON file, and set the last data has only one coordinate. But the result still render more than one coordinates. How can I solve it ?

Samsung S6 Edge - Google Chrome

Hi,

On the Samsung S6 Edge, Google Chrome says that this browser does not support WebGL!

Slight problem with Google Chrome!

Points are incorrectly positioned on map

Hi again,

Apologies for adding another issue, but I'm seeing some strange behaviour. I am plotting this data:

[["departure",[52.3,4.76666666666667,1.0,1.36666666666667,103.983333333333,0.0]],["arrival",[1.36666666666667,103.983333333333,1.0,52.3,4.76666666666667,0.0]]]

This should result in 2 series; the first represents departures where the first point is Amsterdam and the second point (which is set to magnitude = 0) is Singapore. The second series are arrivals where the first point is Singapore and the second point (which also has magnitude set to 0) is Amsterdam.

If I try to each series independently, by hovering over some text, only the first point is drawn in the correct position. So in this case, when the globe first renders it renders departures, focusing on Amsterdam which is drawn in the right place. When I mouse-over arrivals though, Singapore is not drawn in the right place. I find the same happens if I reverse the order of the series so arrivals are first - then Singapore is rendered in the right place and Amsterdam isn't.

What could be the problem? The data seems ok to me?

When Singapore is rendered first, this is where Singapore is rendered (correct):
image

When Singapore is rendered second (on mouse-over), this is where Singapore is rendered (incorrect):
image

Both of the maps above are using the same coordinates for Singapore (see data above).

Appreciate any help.

Cheers,
Annie

when the magnitude of the point fluctuates up and down in each year the magnitude is not consistent for the same year

In the original example (globe folder) the magnitudes are constantly increasing over the years so the magnitudes are rendered correctly

with magnitude fluctuating the magnitude is shown incorrectly ( 1992 retains the same amplitude as 1991)

[
["1990",[0,0,0.02]]
,["1991",[0,0,0.05]]
,["1992",[0,0,0.02]]
]

magnitudes are rendered correctly with magnitudes constantly increasing

[
["1990",[0,0,0.02]]
,["1991",[0,0,0.05]]
,["1992",[0,0,0.07]]
]

Why create morphPadding elements inside morphTargets???

Hello,

I have this doubt,
Why is necessary include this padding to the morphTargets array? and less than 8?

        if (this._baseGeometry.morphTargets.length < 8) {
          console.log('t l',this._baseGeometry.morphTargets.length);
          var padding = 8-this._baseGeometry.morphTargets.length;
          console.log('padding', padding);
          for(var i=0; i<=padding; i++) {
            console.log('padding',i);
            this._baseGeometry.morphTargets.push({'name': 'morphPadding'+i, vertices: this._baseGeometry.vertices});
          }
        }

(snippet from function createPoints()... within Globe.js)

if latter in the this.defineSetter function we do this, using only the MorphTarget:

    var morphDict = this.points.morphTargetDictionary;
    for(var k in morphDict) {
      if(k.indexOf('morphPadding') < 0) {
        validMorphs.push(morphDict[k]);
      }
    }

(snippet from this.defineSetter('time', function(t)... within Globe.js)

So.
when are the morphPadding useful?

Thanks so much for your help, I am trying to understand all the code

Lines not coming out of the globe

I am trying to add a WebGL Globe visualization into a custom SaaS application (Splunk) and instead of getting lines out of the globe, I only see dots.

screenshot 2014-09-26 00 34 25

I suspect the application has its own CSS or something that is overriding and hiding or preventing the lines from coming out. But I have no idea where to start debugging and what "troublesome" CSS properties I should be looking for.

I'm not sure if this helps, but here are 2 screenshot of the CSS properties of the 2 elements: the <div> and the <canvas> that is inside the <div>:

https://www.dropbox.com/s/x7qqkhimkh34h8q/Screenshot%202014-09-26%2000.40.35.png?dl=0 https://www.dropbox.com/s/h79190dgf2k99w6/Screenshot%202014-09-26%2000.40.44.png?dl=0

My sample JSON data is from this tutorial.

Any help or tip is appreciated! Thanks! :-)

Same exact Stack Overflow question here (if you guys want points lol).

Typescript definition file

Hello,

Is there a Typescript definition file available for globe.js for usability in Angular 2 applications?

Thank you in advance!

Start Postion

How can i change were the globe starts or even auto rotate when you open the webpage?

Doc/Example discrepancy

The Readme.md shows the format to look like:

var data = [
[
'seriesA',
[
[ lattitude, longitude, magnitude ],

However, the demo JSON file (population909500.json) is formatted like:

var data = [
[
"1990",
[6,159,0.001,30,99,0.002,45........very long array

Is it available on bower or npm?

Probably this is a stupid question... but how could I include the webjl-globe in my project? which js or css link I should refer to in my header section? Or could we get it from npm or bower?

Thanks:)

Data not rendering with correct colors

I loaded a tiny dataset to test things out, and things worked fine. I created my own script using what is contained in the README (I'm relatively inexperienced here), and suddenly my markers are showing up as black, not the multicolor gradient a la the population globe. Any tips?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.