Git Product home page Git Product logo

cityjson-threejs-loader's People

Contributors

imtiazshakil avatar liberostelios avatar tmuguet avatar ylannl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

cityjson-threejs-loader's Issues

got error "Uncaught Error: Cannot find module './geometry/GeometryData'"

I got the following error after using import { CityJSONLoader, CityJSONWorkerParser } from "cityjson-threejs-loader"; in script.js.

The module was installed via npm i cityjson-threejs-loader.

May I ask what the error means, and how to fix it?

Thanks.

Uncaught Error: Cannot find module './geometry/GeometryData'
    webpackMissingModule bundle.9478a3eba0cd7458.js:56419
    js bundle.9478a3eba0cd7458.js:56419
    Webpack 6
        __webpack_require__
        js
        __webpack_require__
        <anonymous>
        <anonymous>
        <anonymous>
[bundle.9478a3eba0cd7458.js:56419:50](http://192.168.50.92:8080/bundle.9478a3eba0cd7458.js)
    webpackMissingModule bundle.9478a3eba0cd7458.js:56419
    js bundle.9478a3eba0cd7458.js:56419
    Webpack 6
        __webpack_require__
        js
        __webpack_require__
        <anonymous>
        <anonymous>
        <anonymous>

Please clarify the license

Please clarify what license does the software have. Although the code is public for everyone to see, it is legally not possible to contribute or to reuse it in any way until the conditions for it are specified.

Geometries get deformed because translation is applied too early

cityjson-loader-broken-translation-handling

This is practically the same issue that cjio has. Geometries are deformed because the whole transform is applied very early in the process. This leads to floating point inaccuracies.

To reproduce the problem, load files in CityJSON Ninja (which uses cityjson-threejs-loader), and notice the difference. The test files are below

simplified2.city.json
simplified2_less_translation.city.json

My suggested solution is to only apply the scale from the transform at first, do all the processing normally, and then add the translation afterwards to the position of loader.scene (or if there's a better root node, then that).

Unsupported features

These features are not supported yet:

  • Geometry instances
  • MultiLineStrings
  • MultiPoints

How to integrate cityjson-threejs-loader with angular 14

Hi,
I'm trying to use cityjson-threejs-loader in Angular 14 app.I'm trying to add cityjson-threejs-loader via the NPM package installer using,
npm install git+https://github.com/cityjson/cityjson-threejs-loader.git

your package was added to my node_modules but isn't working.
Here,

    const parser = new CityJSONWorkerParser();
    const loader = new CityJSONLoader(parser); //Got error:  TS2554: Expected 0 arguments, but got 1.
    loader.load("/assets/cityjsons/cube.city.json");

    this.scene.add(loader.scene);

Could you help me, how can I integrate cityjson-threejs-loader with angular 14.

Thanks.

Expose core classes for custom usage

Description

  • The way I am using the CityJSON parser differs to the general implementation available within the core exports
  • For example, CityJSONWorkerParser does a lot though I want more control and customisation over geometry generation
  • Another example is to implement a parser into my own worker scripts (CityJSONWorkerParser tries to create its own worker)
  • Or I may want to create an entirely different data management mechanism like streams, or worker pools
  • Manually accessing ChunkParser has been helpful for me but it's not accessible via the root / index file

Expectation

  • Expose all the useful classes from the parser in the root / index file (at least ChunkParser and GeometryParser)
  • Core classes can be used to perform basic parsing so I can perform my own geometry processing or mesh / material application

Deploy as a full NPM package

Description

  • I'd like to install cityjson-threejs-loader in my own application on CodeSandbox
  • Currently there is no pre-built package on NPM to install this via npm install cityjson-threejs-loader
  • The only way to use the package (at least on CodeSandbox) is to manually copy/paste the ./src directory and build it at runtime

Expectation

  • Package can be installed via npm install cityjson-threejs-loader

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.