|
Thili Playfair
Registered User
Join date: 18 Aug 2004
Posts: 2,417
|
06-14-2006 19:10
Playing around with llsettext , and diffrent colors, but question is (duh) Rgb chart usually give me a white text even tho its way diffrent in <x,x,x> then white is, to high? <159,182,205> is SlateGray3, but SL give me a white one. ( http://web.njit.edu/~kevin/rgb.txt.html) Tried some safe html rgb's , they work, SL picky about it?.
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
06-14-2006 19:18
This should help, RGB values in LSL when using numbers and not hex are between 0 and 1. http://secondlife.com/badgeo/wakka.php?wakka=llSetColorthis is true for all LSL function color settings, llSetText, llSetColor...
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
06-14-2006 19:22
simple awnser
RGB value devided by 256
256/256 = 1 128/256 = 0.5 ect
most 3d scripting uses float values, but why linden labs put RGB in the color picker and float in the scripting is beyond me, since its suposta be ez
also using float value with SL will never get you 100% dead on with complex colors, since LSL only supports 7 decmial points, and even in your case will be cut off by 2 places, but its really darn close, you have to have the eye, lighting and monitor to notice the slight veration.
if your matching a lsl color to one on a texture its alittle bit more noticable, but probally not to anyone else but the person making the match heh
|
|
Xixao Dannunzio
Owner, X3D Enterprises
Join date: 20 Mar 2006
Posts: 114
|
06-14-2006 19:36
Short answer:
- 1 is full on - .5 is half - 0 is off ...and all valued in-between.
<r,g,b>
ie: <1,0,0> = red <0,1,0> = green <0,0,1> = blue
comapare to: <255,0,0> = red <0,255,0> = green <0,0,255> = blue
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
06-14-2006 19:37
aye my short awnser started to turn into a book =/
|
|
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
|
06-15-2006 02:25
From: Osgeld Barmy simple awnser most 3d scripting uses float values, but why linden labs put RGB in the color picker and float in the scripting is beyond me, since its suposta be ez
I bet it was two people. One says do this and the other said do that. And look what we get. 
|