SV: [hlcoders] Binary (wtf?) (Updated)

2001-12-15 Thread Daniel Johansson
Title: Meddelande



Hey!

Use the calculator that 
comes with Windows :)
It can convert decimal to binary and the 
other way around.

/Json
[EMAIL PROTECTED]


  
  -Ursprungligt meddelande-Från: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] För Nathan 
  TaylorSkickat: den 15 december 2001 13:31Till: 
  HLCodersÄmne: [hlcoders] Binary (wtf?) 
  (Updated)
  If I made no sense which probably happened, what I mean is a table that 
  displays the 1 and 0 values for each letter. Like:
  
  
  A == 000110
  B == 010010
  
  or whatever it may be.
  
  - Lakario
  
- Original Message -
From: 
Nathan Taylor
Sent: Saturday, December 15, 2001 7:12 
AM
To: HLCoders
Subject: OT: Binary (wtf?)

Sorry, but I have a quick question. Does anyone on thisknow 
binary or whereI can get a complete list of alpha-numeric 
values?

Thanks



Regards,LakarioModDev.netICQ: 

Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com

  
  Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
  


Re: [hlcoders] Binary (wtf?) (Updated)

2001-12-15 Thread Nathan Taylor
sweet, thanks man   - Original Message - From: botman Sent: Saturday, December 15, 2001 7:47 AM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Binary (wtf?) (Updated)  If I made no sense which probably happened, what I mean is a table thatdisplays the 1 and 0 values for each letter. Like: A == 000110 B == 010010 or whatever it may be. - Lakariowww.asciitable.comJust use the Windows calculator in scientific mode to convert from decimal(or hexadecimal) to binary. P.S. They also have the HTML  values forcharacters that sometimes get "eaten" up by web forums.Jeffrey "botman" Broome___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


Re: [hlcoders] Binary (wtf?) (Updated)

2001-12-15 Thread skyork99

I suggest learning how our base-10 number system works first.  Then, it's
WAY easy to translate the knowledge to any other base.  23, 17, 94, it's
all up to you.  IMO it's better to know how something works then to just
have code that works and you don't know why, but it does.

On Sat, 15 Dec 2001 17:16:18 +0100 Florian Zschocke [EMAIL PROTECTED]
writes:
 Dynerman David M wrote:
  
  Ouch, brutally dirty code :\
 
 Maybe, but effective. :)
 
 Florian.
 ___
 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] Particle colors?

2001-12-15 Thread omega

and yeah, i think im on crack or something. i didnt even catch what YOU said
;p
let alone the fact that cortex's was al together.

oh well. nobodies perfect, certain ones just are 99.% of the time =)


-omega
Blackened Interactive
http://www.nofadz.com/blackened
IRC: irc.gamesnet.net channel: #blackened-interactive
Assistant Coder, Underhive (http://www.underhive.com)

- Original Message -
From: botman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 1:24 PM
Subject: Re: [hlcoders] Particle colors?


  0/255 != 1.0
  0/255 = 0
  0/### = 0
 
  -omega
  Blackened Interactive

 I think you misread the original message...

 You can set the three color ( 0.0 - 1.0, so, to get a yellow, you
 can set 255/255.0, 255/255.0, 0/255.0 = 1.0, 1.0, 0.0 ).

 255/255.0 will convert to floating point and be 1.0, so...

 255/255.0, 255/255.0, 0/255.0 is the same as (i.e. = ) 1.0, 1.0, 0.0.

 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] Particle Colors?

2001-12-15 Thread omega

hrm. it used to work fine for me when i used the internal particles before
scrapping em and writing my own particle engine.
lemme take a gander at my old code.
hmm. yup. mines the same. heh.
 p-color =  gEngfuncs.pEfxAPI-R_LookupColor( 173, 112, 220 );
 gEngfuncs.pEfxAPI-R_GetPackedColor( p-packedColor, p-color );

oh well, make a particle engine (whoever it was that asked in the first
place) =)



-omega
Blackened Interactive
http://www.nofadz.com/blackened
IRC: irc.gamesnet.net channel: #blackened-interactive
Assistant Coder, Underhive (http://www.underhive.com)

- Original Message -
From: Matthew Lewis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 15, 2001 1:42 AM
Subject: [hlcoders] Particle Colors?


 I don't think the color functions from the TriAPI are going to work with
the
 particle system. It really does look like the particles are using a fixed
 palette from somewhere. These are the sample engine calls that supposedly
 set the particle color:

 // make a particle
   particle_t *p;
   p = gEngfuncs.pEfxAPI-R_AllocParticle( ParticleCallback );

 // set its color
   p-color =  gEngfuncs.pEfxAPI-R_LookupColor( r, g, b );
   gEngfuncs.pEfxAPI-R_GetPackedColor( p-packedColor, p-color );


 You can try to set r,g,b to some desired color, but what comes out is
 basically a crap shoot. There has to be a better way. (Anyone know where
the
 palette is stored or how to view it so that the colors might be set
 directly?)

 ___
 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] Particle colors?

2001-12-15 Thread omega

no i didnt. look at what you pasted.
he said 0 divided by 255 is 1.0


-omega
Blackened Interactive
http://www.nofadz.com/blackened
IRC: irc.gamesnet.net channel: #blackened-interactive
Assistant Coder, Underhive (http://www.underhive.com)

- Original Message -
From: botman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 1:24 PM
Subject: Re: [hlcoders] Particle colors?


  0/255 != 1.0
  0/255 = 0
  0/### = 0
 
  -omega
  Blackened Interactive

 I think you misread the original message...

 You can set the three color ( 0.0 - 1.0, so, to get a yellow, you
 can set 255/255.0, 255/255.0, 0/255.0 = 1.0, 1.0, 0.0 ).

 255/255.0 will convert to floating point and be 1.0, so...

 255/255.0, 255/255.0, 0/255.0 is the same as (i.e. = ) 1.0, 1.0, 0.0.

 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] Binary (wtf?) (Updated)

2001-12-15 Thread Dynerman David M

Not if you need to go back in 3 months and change something :)

david

-Original Message-
From: Florian Zschocke [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 15, 2001 10:16 AM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Binary (wtf?) (Updated)

Dynerman David M wrote:
 
 Ouch, brutally dirty code :\

Maybe, but effective. :)

Florian.
___
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