Re: [hlcoders] RGB colors

2002-03-11 Thread Christopher Long

well lets take a look at it
the values were 5, 5, 25.5

now the colour index goes from 0 to 255 so the largets range is 255.
now if 25.5 is the largest found value they used one can assume that 25.5 *
10 = 255 which is the largest index from 0-255 in the colour index.

- Original Message -
From: Yacketta, Ronald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 11:30 AM
Subject: RE: [hlcoders] RGB colors


 And where in pray tell is this in the code ?
 How would one know it is such?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Samways
 Sent: Sunday, March 10, 2002 7:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [hlcoders] RGB colors


 Multiply by 10

 50,50,255
 - Original Message -
 From: Yacketta, Ronald [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 10, 2002 11:36 PM
 Subject: [hlcoders] RGB colors


  Folks,
 
  Can someone shed some light on my ignorance here, looking at the
  client.dll I notice that 5, 5, 25.5 is being supplied to the
  R_BeamEntPoint() function.
 
  What is the conversion for the above RGB?
  And how is that conversion done?
 
  -Ron
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlcoders
 

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders


___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




Re: [hlcoders] RGB colors

2002-03-11 Thread Paul 'MoOg' Samways

Yup. It just seemed fairly obvious.

- Original Message -
From: Nathan Taylor [EMAIL PROTECTED]
To: HLCoders [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 7:32 AM
Subject: Re: [hlcoders] RGB colors


 --
 [ Picked text/plain from multipart/alternative ]
 I dunno know about him but it seems like common sense to me.

 - Original Message -
 From: Yacketta, Ronald
 Sent: Sunday, March 10, 2002 8:33 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [hlcoders] RGB colors

 And where in pray tell is this in the code ?
 How would one know it is such?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Samways
 Sent: Sunday, March 10, 2002 7:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [hlcoders] RGB colors


 Multiply by 10

 50,50,255
 - Original Message -
 From: Yacketta, Ronald [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 10, 2002 11:36 PM
 Subject: [hlcoders] RGB colors


  Folks,
 
  Can someone shed some light on my ignorance here, looking at the
  client.dll I notice that 5, 5, 25.5 is being supplied to the
  R_BeamEntPoint() function.
 
  What is the conversion for the above RGB?
  And how is that conversion done?
 
  -Ron
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlcoders
 

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcodersGet more from the
Web.  FREE MSN Explorer download : http://explorer.msn.com
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders


___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




Re: [hlcoders] RGB colors

2002-03-11 Thread botman

 Maybe to someone who has used RGB in that format before yes, but I have
 never used/seen it that way until I started to muck with certain functions
 client side.

 I am sure there are numerous things that were not so obvious at first to
 you, but now are rather obvious.

I agree.  Looking at most of the network messages (TE effects), it's common to
see time values in 1/10ths of a second.  For example, in common\const.h...

// byte (frame rate in 0.1's)
// byte (life in 0.1's)
// byte (line width in 0.1's)
// byte (noise amplitude in 0.01's)

...but color is usually represented as bytes...

// byte,byte,byte (color)

...for OpenGL stuff it's not uncommon to have color represented as floating
point values between 0.0 and 1.0, but you can usually tell this when the
function name ends in 'f' like glColor3f().

Seeing values like (5, 5, 25.5) would lead me to believe the color values were
floating point (due to the 25.5) but the only way you would know that these
were scaled down by a factor of 10 would be through experimentation (or if this
fact had been clearly indicated in the comments in the r_efx.h header file,
which it is not).

Jeffrey botman Broome

___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




RE: RE: [hlcoders] RGB colors

2002-03-11 Thread Yacketta, Ronald

I asked that question myself, but could find no real value/reason for it
*shrug*


 -Original Message-
 From: Jim Hunter [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 10:25
 To: [EMAIL PROTECTED]
 Subject: Re: RE: [hlcoders] RGB colors


 There must be something I'm missing... Why would you want to
 use a float to store RGB values??  Is there some advantage to
 doing it this way?


 ___
 To unsubscribe, edit your list preferences, or view the list
 archives, please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders

___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




RE: [hlcoders] RGB colors

2002-03-11 Thread Yacketta, Ronald

Glad to see I am not the only one that was (at first) miffed by
this gross oversight in documentation ;)

-Ron


 -Original Message-
 From: botman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 10:58
 To: [EMAIL PROTECTED]
 Subject: Re: [hlcoders] RGB colors


  Maybe to someone who has used RGB in that format before
 yes, but I have
  never used/seen it that way until I started to muck with
 certain functions
  client side.
 
  I am sure there are numerous things that were not so
 obvious at first to
  you, but now are rather obvious.

 I agree.  Looking at most of the network messages (TE
 effects), it's common to
 see time values in 1/10ths of a second.  For example, in
 common\const.h...

 // byte (frame rate in 0.1's)
 // byte (life in 0.1's)
 // byte (line width in 0.1's)
 // byte (noise amplitude in 0.01's)

 ...but color is usually represented as bytes...

 // byte,byte,byte (color)

 ...for OpenGL stuff it's not uncommon to have color
 represented as floating
 point values between 0.0 and 1.0, but you can usually tell
 this when the
 function name ends in 'f' like glColor3f().

 Seeing values like (5, 5, 25.5) would lead me to believe the
 color values were
 floating point (due to the 25.5) but the only way you would
 know that these
 were scaled down by a factor of 10 would be through
 experimentation (or if this
 fact had been clearly indicated in the comments in the
 r_efx.h header file,
 which it is not).

 Jeffrey botman Broome

 ___
 To unsubscribe, edit your list preferences, or view the list
 archives, please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders

___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




Re: [hlcoders] RGB colors

2002-03-10 Thread Paul Samways

Multiply by 10

50,50,255
- Original Message -
From: Yacketta, Ronald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 10, 2002 11:36 PM
Subject: [hlcoders] RGB colors


 Folks,

 Can someone shed some light on my ignorance here, looking at the
 client.dll
 I notice that 5, 5, 25.5 is being supplied to the R_BeamEntPoint()
 function.

 What is the conversion for the above RGB?
 And how is that conversion done?

 -Ron
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders


___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




RE: [hlcoders] RGB colors

2002-03-10 Thread Yacketta, Ronald

And where in pray tell is this in the code ?
How would one know it is such?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Paul Samways
Sent: Sunday, March 10, 2002 7:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] RGB colors


Multiply by 10

50,50,255
- Original Message -
From: Yacketta, Ronald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 10, 2002 11:36 PM
Subject: [hlcoders] RGB colors


 Folks,

 Can someone shed some light on my ignorance here, looking at the
 client.dll I notice that 5, 5, 25.5 is being supplied to the
 R_BeamEntPoint() function.

 What is the conversion for the above RGB?
 And how is that conversion done?

 -Ron
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders


___
To unsubscribe, edit your list preferences, or view the list archives,
please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




Re: [hlcoders] RGB colors

2002-03-10 Thread Nathan Taylor

--
[ Picked text/plain from multipart/alternative ]
I dunno know about him but it seems like common sense to me.

- Original Message -
From: Yacketta, Ronald
Sent: Sunday, March 10, 2002 8:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] RGB colors

And where in pray tell is this in the code ?
How would one know it is such?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Paul Samways
Sent: Sunday, March 10, 2002 7:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] RGB colors


Multiply by 10

50,50,255
- Original Message -
From: Yacketta, Ronald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 10, 2002 11:36 PM
Subject: [hlcoders] RGB colors


 Folks,

 Can someone shed some light on my ignorance here, looking at the
 client.dll I notice that 5, 5, 25.5 is being supplied to the
 R_BeamEntPoint() function.

 What is the conversion for the above RGB?
 And how is that conversion done?

 -Ron
 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders


___
To unsubscribe, edit your list preferences, or view the list archives,
please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcodersGet more from the Web.  FREE 
MSN Explorer download : http://explorer.msn.com
___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders