How to preserve color?
chenjianyi opened this issue · 3 comments
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!
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.
Haha, Thanks for your reply. I'll study the method and check the code, too.
Haha, Thanks for your reply. I'll study the method and check the code, too.
hi! Do you have methods to preserve color?