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

Reduce point cloud data to positional data #11

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

soulofmischief
Copy link
Contributor

@soulofmischief soulofmischief commented Dec 18, 2022

Strip unused point cloud data for a 3MiB savings

@vercel
Copy link

vercel bot commented Dec 18, 2022

@soulofmischief is attempting to deploy a commit to the WEBA Team on Vercel.

To accomplish this, @soulofmischief needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

@@ -22,6 +22,7 @@ import {
distanceFloats2Canvas,
depthFloats2Canvas,
} from '../generators/sg-debug.js';
import { getDestructuredPointCloud } from '../lib/index.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a good name for this... We already have a convention of calling these utils. It's certainly not an index.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convention noted, thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything in particular come to mind?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is pointCloudDestructureUtil good?

Copy link
Contributor

@avaer avaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs code cleanup, but makes sense.

@@ -0,0 +1,40 @@

const pointcloudStride = 4 + 4 + 4 + 1 + 1 + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure this constant already exists in the main branch.

@avaer
Copy link
Contributor

avaer commented Dec 20, 2022

This is fine, it just needs to have a clear network and non-network point cloud stride constant to make clear what is happening in the code. Both constants (one of which exists) should be put into the zine repo and used here.

After this ships we should change https://github.com/webaverse/AdelaiDepth to do this and then we can get rid of the processing in this repo entirely.

@vercel
Copy link

vercel bot commented Dec 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
gen ✅ Ready (Inspect) Visit Preview Dec 22, 2022 at 11:14AM (UTC)

@avaer
Copy link
Contributor

avaer commented Dec 25, 2022

Looks like this is highly conflicted.

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

Successfully merging this pull request may close these issues.

2 participants