Announcement

Collapse
No announcement yet.

Darplaces Feature Request

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    @ Monster, LordHavoc, or anyone who can answer my question

    I tried to change the blood for darkplaes and turn it a little bit brighter,
    as we all know the blood is quite dark in Darkplaces.
    ...maybe thats why LordHavoc calls it Darkplaces (joking)

    This is the original effectinfo.txt from TE_BLOOD:

    "effect TE_BLOOD
    count 0.333
    type blood
    tex 24 32
    size 8 8
    alpha 256 256 64
    bounce -1
    airfriction 1
    liquidfriction 4
    velocityjitter 64 64 64
    velocitymultiplier 1"

    I can not find the "color xxxxxx" line in TE_BLOOD, so I copied a color line from another effect.
    My questions know is: what is the logic behind the color values ?
    It always shows the format like this (example):
    color 0x8f4333 0xfff31b
    It is a "0x" and then 6 digits, and then a "0x" with 6 digits again.
    I thought it would be the hexcode for the color, but it isnt.
    This link shows all colors with code: http://de.wikipedia.org/wiki/Webfarben
    When I use ff0000 (it should be light red acording the color table in the link, but it doesnt).
    It looks a little green, but much more transparent than original DP blood

    Can someone please explain me how the logic is, behind it ?
    I want to bright up the blood color a little. (make it more red, without making it more transparent)
    And why are there 2x times the 6 digits ?
    Does it explain a range or something ?

    Thank you so much for an answer.

    Regards,
    Seven
    Last edited by Seven; 10-11-2007, 01:26 PM.

    Comment


    • #17
      Originally posted by Seven View Post
      @ Monster, LordHavoc, or anyone who can answer my question

      I tried to change the blood for darkplaes and turn it a little bit brighter,
      as we all know the blood is quite dark in Darkplaces.
      ...maybe thats why LordHavoc calls it Darkplaces (joking)
      Well, it's easier to make it lighter by modifying the particlefont.tga because the blood is already colored there, which is why TE_BLOOD has no color (which means the particles are always FFFFFF)
      I just made a dump of the particle font here for reference, you can modify it to taste:
      particlefont.zip

      Just extract to id1/ and modify the images as needed.

      The particlefont cells for blood are cyan on black background, this is due to the odd type of coloring it uses, if you want to make it lighter, you have to make those splats darker (yes, inverse).

      Alternatively you can change the alpha line in the effectinfo.txt to use lower alpha and that will make them fainter ingame.

      Comment


      • #18
        Thank you very much LordHavoc.

        I new, there must be a trick in changing the blood color, because of the missing "color 0xXXXXX" command in TE_BLOOD.

        Now I only have to find a software program, which does exchange a specific color (cyan) with another (darker) color in a picture file.

        Anyone,
        any suggestions here. Someone know a program which can change specific colors inside a picture ?

        Thank you.
        Seven.

        Comment


        • #19
          You're the man LH

          Comment


          • #20
            any half descent image editor will let u do that..

            Comment


            • #21
              @ LordHavoc

              I have struggled / worked quite long with your particlefont.tga.

              The funny thing is, when I extract the particlefont.tga from your ZIP into Quake\ID1\particles,
              everything works fine. But as soon as I open it with Corel Draw and save it (even wihout making any changes)
              I get ugly effects in the game (see below screenshots).
              It looks like simply saving the file makes it damage somehow.
              Is a tga file so sensitive ??

              Anyhow after a long time "try and error" I managed to make the blood look really
              good now (i used the RGB color 32 185 170),
              but as soon as I save the
              modified particlefont.tga, I get the terrible artifacts.
              And all effects (even shotgun sparks when you shoot walls)
              get ugly. Just as if I changed
              the resolution from 1280x1024 to 320x240.
              So now I have the beautiful blood color, but the ugly effects...
              (what a fool I am)

              Any help here ?
              Do I have to use a special program to open / save a tga file ?
              Until now I only found Corel Draw, which can change the
              blood splats in the particlefont.
              This is not so easy, because the brigthness of the small blood splats in the file are all different.
              So you need a quite "good" program to change he basic color of it. Simply adjusting the brightness does not help here.

              Thank you very much.
              Seven

              with original particlefont file from LordHavocs ZIP file:




              when I simply open and save the particlefont file (even without changing it):




              This is the particlefont file:
              Last edited by Seven; 10-18-2007, 03:59 PM.

              Comment


              • #22
                Originally posted by Seven View Post
                everything works fine. But as soon as I open it with Corel Draw and save it (even wihout making any changes)
                I get ugly effects in the game (see below screenshots).
                It looks like simply saving the file makes it damage somehow.
                Is a tga file so sensitive ??
                Not sensitive, but some programs don't seem to save transparent tga files properly.

                The program may be saving a tga file with transparency data but labeled as not transparent (the tga format specification is quite clear about this distinction, and darkplaces follows it exactly, so the paint program is to blame), if this is the case my lhtgacleaner utility in lhtgatools can fix the tga file.

                I would recommend using gimp (which has a good tga saver), or trying to save png and seeing if that helps. (DarkPlaces does load png, but it loads slower than tga so it is not recommended)

                There are a few other programs with problems saving tga (mostly this transparency problem), such as PaintShop Pro (still not fixed to my knowledge), and Photoshop 7 (older and newer versions work fine).

                Comment

                Working...
                X