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

Support Pixar tag (t) extension #57

Open
virtualritz opened this issue Jan 28, 2023 · 0 comments
Open

Support Pixar tag (t) extension #57

virtualritz opened this issue Jan 28, 2023 · 0 comments

Comments

@virtualritz
Copy link
Contributor

virtualritz commented Jan 28, 2023

Pixar has an undocumented extension for OBJ files where tags can be stored in the OBJ. Commonly those are attached to vertices (or edges/edge chains, by specifying them through the contained vertices).
Each tag can contain integer and/or float and/or string tokens.

An example is found in the tinyobjloader repo. where this is used to store crease values on edges for rendering the geometry as a subdivison surface.

The code for parsing the crease tags is found here.

One of the issues is that Pixar decided to just export these tags from the Ri inteface representation which uses zero-based indexing. I.e. if this was to be adopted on a wider scale for import/export of OBJs it would probably make sense to use 1-based indexing for any references e.g. stored in a tag's integer tokens (referencing geometry inside the OBJ).

@virtualritz virtualritz changed the title Support Pixar subdivison tag (t) extension Support Pixar tag (t) extension Jan 28, 2023
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

1 participant