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

upgrading point cloud from master branch to 0.2.0 #156

Open
SignpostMarv opened this issue Jun 7, 2015 · 3 comments
Open

upgrading point cloud from master branch to 0.2.0 #156

SignpostMarv opened this issue Jun 7, 2015 · 3 comments

Comments

@SignpostMarv
Copy link

This chunk of code is used to populate the vertices of a THREE.ParticleSystem (named THREE.PointCloud in the latest version of three.js), which renders the geolocation of various social media icons on the map. With the master branch code, it took some digging but I figured out how to add particles to my map (see issue #155). Having a little bit of trouble performing the same task with the 0.2.0 branch- any help would be appreciated :)

define(function(){ return function(options){
    var
        coords = options.city.geo.projection([
            parseFloat(options.longitude),
            parseFloat(options.latitude)
        ])
    ;
    return (
        options.geometry.vertices.push(new THREE.Vector3(
            coords[0],
            options.altitude * options.city.geo.pixelsPerMeter,
            coords[1]
        )) - 1
    );
};});
@SignpostMarv
Copy link
Author

guessing this'd be something suitable for a blueprint wotsit, rather than fudging it directly into three.js?

@SignpostMarv
Copy link
Author

cough. any assistance ?

@antont
Copy link

antont commented Feb 2, 2016

yes the idea of 0.2.0 is that you can do whatever data inputs & visualizations cleanly as plugins, and those are called blueprints. input bluprints and output blueprints. no need to hack vizi core (for example the scene creation code) like with 0.1.

this is an example of such an output plugin that draws points:
https://github.com/vizicities/vizicities/blob/0.2.0/src/Blueprint/BlueprintOutputDebugPoints.js

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