vanruesc / linear-octree Goto Github PK
View Code? Open in Web Editor NEWA sparse, linear octree data structure.
License: zlib License
A sparse, linear octree data structure.
License: zlib License
My mistake, you can ignore this ;). I didn't use a fresh vector for each entry.
What are the usage cases?
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.
This line
linear-octree/src/core/Octree.ts
Line 207 in 04fb768
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!
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!
Or does this fallow the principles in https://geidav.wordpress.com/2014/08/18/advanced-octrees-2-node-representations/ ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.