Getting Wrong Color from Material



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!


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 !


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?


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