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

Question for applicability as a geometry image #64

Open
kingofthebongo2008 opened this issue Nov 4, 2020 · 1 comment
Open

Question for applicability as a geometry image #64

kingofthebongo2008 opened this issue Nov 4, 2020 · 1 comment

Comments

@kingofthebongo2008
Copy link

Hello,
I am sorry to post here,
Can i use this library to generate a geometry image of mesh?
What restrictions i should put to the initial geometry?
Here is a link to the paper, if you are not familiar.
http://www.cs.harvard.edu/~sjg/papers/gim.pdf

@keenancrane
Copy link
Collaborator

Yep! Easily.

Just change the "Target Boundary" mode to "Set Boundary Angles" and pick four corners, setting each of their target angles to 0.5π. Then export the mesh. This will give you an OBJ file where the UV coordinates are all inside a rectangle. To get your geometry image, you now just have to draw these UV coordinates as a 2D mesh, where the (r,g,b) color of each vertex is set to the (x,y,z) coordinates from the original 3D coordinates.

Note that in general you'll get a rectangle, rather than a square. If you want a square, just scale the UV coordinates in the horizontal (or vertical) direction so that you have a square.

As noted in the original paper, the only restriction on the geometry is that your surface needs to be partitioned into a collection of disk-like pieces (so that you get one rectangle, or square, per piece).

image

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

No branches or pull requests

2 participants