Giter Club home page Giter Club logo

linear-octree's People

Contributors

vanruesc 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

Watchers

 avatar  avatar  avatar

Forkers

wwwk liamdon jimbok8

linear-octree's Issues

Project status?

Hi.

I've been trying to launch the demo page locally but with no luck. Github pages deployment is no more as well. Perhaps, it would be quicker to ask you directly here.
Is this implementation considered to be finished by you as an author? Besides raytracing logic.

Cull swaps key with level

This line

octantWrapper.id.set(level, keyDesign.packKey(v));
swaps level and key.

Now chit-chat:

I been really drawn to this library as a solution to many of my use cases in a project I am working on. I've been coming back to it after trying many other methods and libraries like undirected graph and traditional sparse octrees. I am going to try and attempt to adapt this to a spherical coordinate system, as that would really hone in what I need that is no where to be found in npm-land. Thanks for the great library!

Initialization method that stays within Box3 bounds

Hey, thanks for writing this cool library!

I'm interested in using it for a project to bake object occlusion data - link if you're interested :)

The api looks very well designed, only one problem I'm encountering is how to initialize the octree to exactly fit a Box3 (that I've previously made to fit my scene). Maybe I'm overlooking something but all the initialization methods described in the Readme don't work for me, in the sense that the tree bounds don't stay constant when I change the levels in the Keydesign (maybe that's a bug?).

What I'm looking for is an initialization method that takes a Box3 for bounds and divides that volume up in the way described by the Keydesign.

The following will only fit the scene bounds, if I set level = 1, but as soon as I increase the levels, it will no longer fit the bounds in size or position.

const sceneBounds = new Box3().copy(sceneGeometry.boundingBox);
const level = 3; 
const keyDesign = new KeyDesign(level, level, level);
const octree = new Octree(sceneBounds, keyDesign);

Best Regards

Edit: I'm on the train right now, but I can add screenshots later on if that would help - Cheers!

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.