-ambient Color

OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
edited June 2003 in Mapping Forum
I have some problems with "-ambient color" (ambient light) using Batch Compiler 2.01 and 1.7p10.
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
Set ambient world light.
This option sets a minimum light value to every face so that nothing comes out pitch black.
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
In NS its always Black or white (like fullbright but its just white ambient light all over)
Ambient light might be used rarely.
Maybe its an NS specific problem.
Whats the correct Syntax for an aditional parameter ?

Update: Blue (0 0 255) worked fine. but I want grey.

2:
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
Command line: C:\PROGRA~1\BATCHC~1\HLRAD.EXE -extra -sparse -oldmath -bounce 2 -smooth 80 -chop 256 -texchop 128 -lights complexlig.rad <b>-ambient 0,501960784313725 0,501960784313725 1</b> -chart -estimate -noinfo -low "F:\mapedit\- Maps\selfmade\compile.map"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd--> WTH? %value with 15 decimals?

Comments

  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    15 decimals and only 2 values? maybe it is 16-bit *g*
    there must be something wrong with the batch compiler if it only sends 2 values to hlrad.exe
  • OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
    the 3rd value is "1" . look closer and you might find it.
  • MerkabaMerkaba Digital Harmony Join Date: 2002-01-24 Member: 22Members, Retired Developer, NS1 Playtester
    The values must be between 0 and 1, not 0 and 255. Pure red for instance would be <b>1 0 0</b>, and grey would be something like 0.01 0.01 0.01
  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    We know, we know. Just why the heck does HLRAD not work correctly on the given values. There are at least two possibilities:
    <ul>
    <li>Cagey wrecked the lighting code during his 'optimizations' :O
    <li>15 decimals are too much for the internal text-to-number conversion of HLRAD
    </ul>

    hmm I wonder if you can create lists in lists in this forum...
    *makeswierdlist*
    <ul>
    <li><ul><li>I1</ul>
    <li>I2
    <ul>
    <li>I3<li>
    </ul>
    </ul>
  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    Yeah... that comes out cool <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
    Looks like a map of known galaxies or something.
  • OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
    alright. numbers between 1 and 100 failed, like i expected.
    numbers between 0.1 and 1 (or 0,1 and 1) failed too wich confused.
    now numbers between 0 and 0.01 work fine!

    so <b>0.01 = 100%</b> (<!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->) in RGB values.

    0.002 0.002 0.002 is dark grey (20%).
    0.005 0.005 0.005 is bright grey (50%).
Sign In or Register to comment.