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

Display vertex colors from OBJ file #22

Open
elsurudo opened this issue Jan 28, 2016 · 0 comments
Open

Display vertex colors from OBJ file #22

elsurudo opened this issue Jan 28, 2016 · 0 comments

Comments

@elsurudo
Copy link

Apparently, there is a pseudo-standard for storing color data along with each vertex in OBJ files:

It looks something like this:

v 1220.094482 -572.500000 177.713943 0.984314 0.764706 1.000000

where the last 4 numbers represent RGBA, from 0 to 1.

From: http://gamedev.stackexchange.com/questions/21303/how-can-i-include-vertex-color-information-in-obj-files/66270#66270

Scanning this data is easy enough. I am willing to make a PR with these changes, but could use a hint as to what needs to be changed in GLModel's draw method to actually draw the colors.

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