<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt">Hello Marck,<br><br>That was an excellent observation, that is what exactly the problem I had. Now I swap the values of G & B, I get the color almost close to what I saw in the external application.<br><br>Thank you very much for pinpointing this to me promptly.<br><br>Best<br>Gajan<br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Marck <marck00@nexgo.de><br><b><span style="font-weight: bold;">To:</span></b> opensim-dev@lists.berlios.de<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 25, 2010 9:46:04<br><b><span style="font-weight: bold;">Subject:</span></b>
Re: [Opensim-dev] UpdateTexture or UpdateTextureEntry - OpenSim 0.7<br></font><br>Hello Gajananan,<br><br>R=142, G=255, B=142 is a light green color.<br>R=142, G=142, B=255 is a light blue color.<br><br>If OpenSim shows you in world RGB=<142, 255, 142> as a light green color then this is the expected behaviour.<br><br>If you are seeing a light blue with your external application, then this external application apparently swaps the values for G and B. Seeing yellow as pink is another hint that the values for G and B are swapped.<br><br>Gajananan Kugamoorthy wrote:<br>> Hello<br>><br>> Thank you for your reply.<br>><br>> Please see the attached images , I am using some external data to create<br>> prims in the world . When I use the color information in 1 -255 range<br>> e.g. <142, 255, 142> (with the color light blue I see in the external<br>> data) from external data and use that color information to create a
prim<br>> in the world, I get the light green prim. There are more example like<br>> (yellow is seen as pink). In my case, maintaining the color information<br>> is vital.<br>><br>> I thought , there should not be any changes in the color format. I agree<br>> that middle one is strongest. But what I dont get is that why there is a<br>> change in color.<br>><br>> Best<br>> Gajan<br>><br>><br>> *From:* Melanie <<a ymailto="mailto:melanie@t-data.com" href="mailto:melanie@t-data.com">melanie@t-data.com</a>><br>> *To:* <a ymailto="mailto:opensim-dev@lists.berlios.de" href="mailto:opensim-dev@lists.berlios.de">opensim-dev@lists.berlios.de</a><br>> *Sent:* Wednesday, August 25, 2010 9:14:47<br>> *Subject:* Re: [Opensim-dev] UpdateTexture or UpdateTextureEntry -<br>> OpenSim 0.7<br>><br>> This works as designed. The middle (green!) component is strongest,<br>> so the prim WILL be light green. Why
you would expect light blue is<br>> beyond me.<br>><br>> Melanie<br>><br>> Gajananan Kugamoorthy wrote:<br>> > Hello OpenSim Developers,<br>> ><br>> > I am using UpdateTexture function in SceneObjectPart class of<br>> OpenSim. I have<br>> > RGB values in 1-255 scale, then I convert it to 0 - 1 scale in my code<br>> ><br>> > For example :<br>> ><br>> > Primitive.TextureEntry tex = p.Shape.Textures; ( p<br>> > is a 'SceneObjectPart')<br>> > Color4 texcolor;<br>> > float r = 142, g = 255, b = 142<br>> ><br>> > texcolor.R = Util.Clip(r, 0.0f, 1.0f);<br>> > texcolor.G = Util.Clip(g, 0.0f, 1.0f);<br>> > texcolor.B = Util.Clip(b, 0.0f, 1.0f);<br>> ><br>> > tex.FaceTextures[k].RGBA = texcolor;<br>> >
p.UpdateTexture(tex);<br>> ><br>> ><br>> > When I used the color combination <142, 255, 142>, I expected a light<br>> blue<br>> > color , however what I can see in the world for the prim that I set<br>> the color is<br>> > light green.<br>> ><br>> > I noticed this problem in earlier versions of OpenSim as well.<br>> ><br>> > Does anybody face problem like this ? I would greatly appreciate if<br>> someone<br>> > could share their experience.<br>> ><br>> > Best<br>> > Gajan<br><br>_______________________________________________<br>Opensim-dev mailing list<br><a ymailto="mailto:Opensim-dev@lists.berlios.de" href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev"
target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></div></div>
</div><br></body></html>