cdyk / rvmparser

Code to work with AVEVA PDMS RVM files
MIT License
98 stars 55 forks source link

There is a color issue after converting rvm to obj file. #69

Open hardp1981 opened 1 year ago

hardp1981 commented 1 year ago

1681292790074 1681292813346

cdyk commented 1 year ago

Have you tried playing with this option?

  --color-attribute=key               Specify which attributes that contain color, empty key
                                      implies that material id of group is used.

What color to use is not always totally obvious, there are multiple approaches: Sometimes there is a material id in the actual rvm file geometry description, while at other times the metadata in the txt or att file contains attributes with color names.

ld000 commented 1 year ago

The same issue for me, after converting to obj, the color is different, and the att file does not contain color names. any idea?

RVM: image

OBJ: image

ld000 commented 1 year ago

Can I fix this by editing the color value in Colorizer.cpp, Is the same MaterialId always have the same color value in different models?