-
Notifications
You must be signed in to change notification settings - Fork 12
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
How does the grid sampler determine the grid boundary? #5
Comments
It seems like the boundary is determined by the sampler logic mapping some openGL UV space to the object XYZ space. If the contributors can offer some comments/explanations on this mapping, it would make it a lot easier to develop extensions! |
Hi, What do you mean exactly by a minimum and maximum XYZ coordinates? In general the SDFs should reside mostly in normalized |
Thanks for the response @tovacinni ! That's what I assumed first, but I tried one of the examples and it seems like it was sampling outside the [-1, 1]^3 space. Example: sdf = "Torus" bin_path = os.path.join(sample_path, f"grid/{sdf}.bin") pos, dist, normal = sdfdes.deserialize(bin_path) print(torch.max(pos[:, 0])) This will output 7.22, which is outside [-1, 1] |
Hi, Thanks for looking into this. At first glance this seems like a bug... I'll try to look into this. I think ideally we should actually be generating these things in morton order. Best, |
Hi, thanks to the contributors of this project. Is there a way to determine the minimum and maximum x,y,z coordinates from the .glsl files in the data-files/sdf directory? I would like to build a custom adaptive grid sampler but there doesn't seem to be a way to determine the boundary of such a grid.
The text was updated successfully, but these errors were encountered: