Announcement

Collapse
No announcement yet.

Creating .ent file for fog in Darkplaces

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

  • Creating .ent file for fog in Darkplaces

    I've read posts about creating an .ent file for fog in the Darkplaces engine. I've played around with fog a bit now and would like to enable it on certain maps with an .ent file, but I'm totally ignorant of what to do. Can someone help me step-by-step using the following from seven:
    fog .3 .32 .25 .2 .6 20 2000 1500 30
    Regards
    Jeff

  • #2
    Having done some more homework on this, I believe it may be a lot over my "noobness" at this time. Is there a way to bind a key to do this at will? Again, I'd need some step-by-step please.
    Thanks

    Comment


    • #3
      open console and type:
      bind k "fog .3 .32 .25 .2 .6 20 2000 1500 30"
      and volia
      and then simply push "K" on a map that doesn't have fog.

      Comment


      • #4
        Thanks OoPpEe! So simple.

        Comment


        • #5
          Your fog command fixed the bug I was having. When I enabled fog, the skybox would lose it's texture. So I just took yours and changed the RGB on it and it fixed it. Guess one of my values was just either too low or high.

          For the .ent file issue. You will notice at the start it has something like:
          {
          a bunch of commands on each line
          }

          put the fog line right above the } so it's kinda like this:

          {
          classname "worldspawn"
          Message "something"
          sounds "1"
          mapversion "666"
          wad "some names"
          (your fog goes here)
          }

          Comment


          • #6
            All credit goes to seven as I snatched those from another forum post here somewhere. How about a snap of yours, and what values did you change from what I have?

            I want to take another moment to say I sincerely appreciate the patience forum members here have for some of us on the beginning of the learning-curve. I know that it must be trying at times, but I'm learning a lot and have a great looking Quake game!
            Regards all

            Comment


            • #7
              OoPpEe,

              I tried to help you with your fog issue a few days ago here.
              Unfortunately you didnt seem to read that post.


              gdiddy62,
              I dont know if you know how to create an .ent file.
              If not, its simple:
              - load your map (map xyz)
              - type: sv_saveentfile and the xyz.ent file will be created.
              - then edit it just like OoPpEe described it above.

              Regarding modifiyng the fog�s visual (density and stuff):
              Look in DP wiki: here to see the command syntax and variables !
              Play around with the first 5 values to make your fog perfect for you.
              You can of course use different fog setting in different .ent file

              Best wishes,
              Seven

              Comment


              • #8
                Thanks seven.

                Comment


                • #9
                  Seven,
                  May I ask for the values of the medium and heavy fog you used in the post you mention.
                  Thanks

                  Comment


                  • #10
                    Hello gdiddy62,

                    hmmm. I only used 2 versions with fog. I called them: "weak" and "strong".

                    The "weak" version has exactly the values I gave in the end of that post.
                    The same as you wrote in your 1st post of this very thread.
                    This is my standard fog. Having more, makes things less beautiful in my eyes.

                    So now for the "strong":
                    I dont remember. I just used another digit for the FIRST value. Simply to show that even with more fog, the sky is still visible.
                    As I said, go to the DP wiki and see the fog�s command definiton:
                    fog : set global fog parameters (density red green blue [alpha [mindist [maxdist [top [fadedepth]]]]])
                    I think I used .7 instead of 0.3 for the FIRST value. (I guess you know why)

                    But that was just a random number.
                    Play with the FIRST and FIFTH values to get your personal perfect fog (thickness-wise) my friend.
                    If you dont like the white color, change the values 2 till 4.

                    In this way, you can make every map have the perfect fog, using .ent files for them.

                    Have fun experimenting...
                    Seven

                    Comment


                    • #11
                      A lot of recent maps do have fog enabled by the mapper, and others might be intended to be played without fog

                      For Fitzquake derivatives, the syntax is

                      fog density r g b

                      Try pretty low values for density.

                      RMQengine has cvars to make lava, for example, shine through fog much like you can do with sky. r_lavafog I believe.

                      Do you want ‘Stroyent Lava’? I don’t The Realm of Blog Magic
                      Scout's Journey
                      Rune of Earth Magic

                      Comment


                      • #12
                        Thanks, I'll play around with them now.

                        Comment


                        • #13
                          I know this is probably off-topic from my original intent of this thread, but what are some of the values for rain using dpmod?

                          Comment


                          • #14
                            .
                            Thank you LordHavoc !




                            Screen and file taken directly from LordHavoc himself (pure Quake, no replacements) !

                            Delete the ".zip" extension before you use it !
                            (I had to fake it to be able to upload it here)
                            Download-Link at the end of this post.

                            Kind regards,
                            Seven


                            ATTENTION:

                            Rain effect can be activated just the way you activate fog in DarkPlaces:
                            It must be done via "map".ent file.
                            Requirement for rain is to use dpmod though (due to rain_think function).

                            Check misc.qc in dpmod for
                            - void() rain_think
                            - void() func_rain


                            -----------

                            some more fog screens: without / weak fog / stronger fog)

                            / /

                            / /


                            This is the setting for the "weak fog":
                            "fog .3 .32 .25 .2 .6 20 2000 1500 30"
                            -----------------
                            Attached Files
                            Last edited by Seven; 04-13-2011, 05:26 AM.

                            Comment


                            • #15
                              Thanks again Seven!

                              Comment

                              Working...
                              X