Getting Wrong Color from Material

materials
sketchup
color
sdk

#1

Hello,
I am trying to get the color information from a skp model. I am getting the materials from each face and color from that material. But the color information which I am getting is wrong.
This is my skp model,


But the information which I am getting is ,

There is no blue in it !
Hence the final output which I am getting is - Red instead of Blue!


#2

The value received also changes every time I debug. It is showing values for red & green. But most of the time it shows only for red !


#3

I believe that the color specifier is BGR and not RGB. For example, I expected 0xFF0000 to be red, but it is blue. Similarly, 0x0000FF produces a red. If you swap your red and blue values, does it make more sense?


#4

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.