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

How to preserve color? #1

Open
chenjianyi opened this issue Mar 9, 2021 · 3 comments
Open

How to preserve color? #1

chenjianyi opened this issue Mar 9, 2021 · 3 comments

Comments

@chenjianyi
Copy link

First, thanks for your pleasant work!
The format of input obj file for me is as follow,

v x1 y1 z1 r1 g1 b1
v x2 y2 z2 r2 g2 b2
...
f f1 f2 f3
...

In the v flag for every line, there is color item (r, g, b). I run your code, and I found color item disappeared in output file.
How should I compute color value?
I think it's better not change file format if there is no much extra computational burden.
Thank you!

@AntonotnaWang
Copy link
Owner

Hi, thanks for your question. Haha, I didn't consider color in this work. I can check the code. You can also look at it because it mainly does some array computation. I remember I only preserve the location info of vertices when loading the obj file. You can try preserving them all.

@chenjianyi
Copy link
Author

Haha, Thanks for your reply. I'll study the method and check the code, too.

@1234269
Copy link

1234269 commented Mar 3, 2022

Haha, Thanks for your reply. I'll study the method and check the code, too.

hi! Do you have methods to preserve color?

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

3 participants