Jump to content


* * * * * 3 votes

Gplfog


  • Please log in to reply
38 replies to this topic

#1 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,413 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Jan 30 2011 - 12:28 PM

This tool let's you add fog settings to a track.ini
You can switch the fog on or off and apply several settings.

Some features:
1. it saves a backup of the changed trackxx.ini to trackxx.cpy
2. it saves the last used setting so you can test gradual changes.
3. You can choose from the tested values Jim Pearson found while trying out the fog feature.
4. If a track.ini already has fog settings it will change them (if the values match the exact [ Fog ] format)
5. You can alter the density with use of the slider in the Light/Dark Setting section
6. You can change the fog color by changing the Red, Green or Blue color(s)

Note: the density slider has a range of of 1 to 100 = 0.01 to 1.0
It was easier to use this range and i don't think it will have much use to apply higher values
:think:

Note2: Jim Pearson used a density of 0.01 (which is the slider set a 1, the minimum)
Using higher values probably only have use on wet tracks..

Download at my website under...yep downloads...GPLFog tool

Thx to Jim Pearson for posting some useful fog settings :thumbup:

P.S. Again it's a simple tool. Nothing fancy just coded in vb.
For me it'l do and i hope for you too :)

Attached Files


Edited by MECH, Mar 08 2011 - 12:33 PM.


#2 GrandPrixYannick

GrandPrixYannick

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 995 posts
  • Gender:Male
  • Location:Netherlands
  • Interests:Check out my channel for some nice GPL content :)
  • Sim interest:GPL

Posted Jan 30 2011 - 02:12 PM

thanks, MECH  :wave:

#3 mouse

mouse

    "Titan del drink"

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:South America
  • Interests:Stock Car racing
    Whelen Modifieds
    Club The Strongest
  • Sim interest:GPL

Posted Jan 30 2011 - 03:03 PM

Thanks Mech.

All we need now, is some heavy track mist...:hiding:

Attached Files



#4 fajanko

fajanko

    Jani Posta

  • GPLLinks Team
  • PipPipPipPipPipPipPipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Budapest, HU
  • Interests:graphic design, games, languages
  • Sim interest:GPL

Posted Jan 31 2011 - 02:50 AM

I love the fog effect. Many thanks for this tool :)

#5 Alan Davies

Alan Davies

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 546 posts
  • Gender:Male
  • Location:Portsmouth UK
  • Interests:Cycling: Road and Off Road.
    Driving well and safely.
    Growing Vegetables.
  • Sim interest:GPL

Posted Jan 31 2011 - 02:58 AM

Good work MECH,
I already have fog applied to several tracks:
Rouen Winter.
Cerne's Wood (when using the winter graphics).
Snowitude.
One or two others that I can't remember right now, but I intend to try fog with Hockenheim67 where the original tree colour has a blueish hue, I think it will look great.

I have a question though.  If the fog settings are put into the track.ini the sky and horizon are no longer visible, but in your screen shots they are still there. Is this a new development?

#6 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,413 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Jan 31 2011 - 05:50 AM

View PostAlan Davies, on Jan 31 2011 - 02:58 AM, said:

I have a question though.  If the fog settings are put into the track.ini the sky and horizon are no longer visible, but in your screen shots they are still there. Is this a new development?

I don't know which screenshots you are referring to but i didn't post any ;)

But the amount of fog is depending on the density setting.
The predefined settings are base on Jim Pearsons tested settings for morning, evening etc.. and use a 0.01 setting which is about the lowest you can get.
Upping the value will make the fog more dense. Right now i limited the slider to 100 which is 1.0.
(so basically if you selected a predefined setting you will get a density 0.01. If you want a more dense fog you should change the light/dark setting by moving the slider to the right)
But reading Nigels readme of the rasterizers again made me reconsider that max value :think:
I think i need to increase that value to 10.0 to have the fog as dense that it covers the track as well..

Attached Files


Edited by MECH, Jan 31 2011 - 05:57 AM.


#7 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,413 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Jan 31 2011 - 05:58 AM

View Postmouse, on Jan 30 2011 - 03:03 PM, said:

Thanks Mech.

All we need now, is some heavy track mist...:hiding:

You are using the predefined settings.
Try using the slider for the density ;)

#8 fajanko

fajanko

    Jani Posta

  • GPLLinks Team
  • PipPipPipPipPipPipPipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Budapest, HU
  • Interests:graphic design, games, languages
  • Sim interest:GPL

Posted Jan 31 2011 - 06:00 AM

View PostMECH, on Jan 31 2011 - 05:50 AM, said:

But reading Nigels readme of the rasterizers again made me reconsider that max value :think:
I think i need to increase that value to 10.0 to have the fog as dense that it covers the track as well..

I still have to wait 4 or 5 hours to check my settings, but as I recall I used at least 3.0 density for Le Mans Sarthe.

Posted Image

#9 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,413 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Jan 31 2011 - 06:03 AM

View Postfajanko, on Jan 31 2011 - 06:00 AM, said:

View PostMECH, on Jan 31 2011 - 05:50 AM, said:

But reading Nigels readme of the rasterizers again made me reconsider that max value :think:
I think i need to increase that value to 10.0 to have the fog as dense that it covers the track as well..

I still have to wait 4 or 5 hours to check my settings, but as I recall I used at least 3.0 density for Le Mans Sarthe.


Thx for the info :thumbup:

I'll change the max value so the highest setting possible will be 10.0 :)

Edited by MECH, Jan 31 2011 - 06:03 AM.


#10 DRat

DRat

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 66 posts
  • Gender:Male
  • Location:Johnson City, TN
  • Interests:GPL, Ham Radio, Model Railroading, Grandkids
  • Sim interest:GPL

Posted Jan 31 2011 - 07:27 AM

View PostMECH, on Jan 31 2011 - 06:03 AM, said:

I'll change the max value so the highest setting possible will be 10.0 :)

Excellent!  I'm using a 3.5 at Bsarthe, and also using a 5.0 at Solitude, which seems high but it completely removes the treeline pop-up effect.  Fortunately, it looks like a nice spring or summer early morning fog.  But unfortunately, some tracks (like Spa) don't seem to work very well with fogging due to the sky backdrop being such an integral part of the view (including nearby hillsides, etc).  At Spa I had to use a 6.5 to keep it from looking flawed, but that also made it practically undriveable.

But at most tracks, even a small amount of fogging improves the appearance a lot.  Thanks for this tool - it makes experimenting with the fog settings a lot easier.

:thumbup: :thumbup: :thumbup:

#11 ezechiel47

ezechiel47

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 354 posts
  • Gender:Male
  • Sim interest:GPL

Posted Jan 31 2011 - 11:17 AM

Many thanks, Martin

Great tool !

Ez

#12 Alan Davies

Alan Davies

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 546 posts
  • Gender:Male
  • Location:Portsmouth UK
  • Interests:Cycling: Road and Off Road.
    Driving well and safely.
    Growing Vegetables.
  • Sim interest:GPL

Posted Jan 31 2011 - 11:49 AM

Sorry MECH,
You didn't post scrrenshots, I was referring to mouse's screenshots in post #3.
I use these settings for Cerne and Rouen winter
[ fog ]
type = 1
density = 5.0
fog_r = 150
fog_g = 175
fog_b = 200

#13 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,413 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Jan 31 2011 - 01:21 PM

v1.0.1 with extended density range 1 - 1000 (=0.01 - 10.0) uploaded :)

#14 burt

burt

    burt

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 254 posts
  • Gender:Male
  • Location:England
  • Interests:Interests
  • Sim interest:GPL

Posted Jan 31 2011 - 03:27 PM

Thanks Mech,

Thats a useful piece of kit! :thumbup:



Burt

#15 Nurby Yogi

Nurby Yogi

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:25km from green hell
  • Sim interest:GPL

Posted Jan 31 2011 - 03:59 PM

Hello Mech,

thanks a lot for your very foggy ...eeeehh... cool tool.Posted Image

I think It is very usefull for the 1968 very foggy german GP.Posted Image



#16 svenvangent

svenvangent

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,001 posts
  • Gender:Male
  • Interests:GPl natuurlijk .... what else !
    And Projectcars perhaps !
  • Sim interest:I have no preference

Posted Jan 31 2011 - 04:01 PM

Thanks Mech ,

I will certainly use it for Cerne track , yes yes this track is already a little bit spooky so with a little bit of fog in it will it be more spooky wooky brrrrrrrrrrrrrrrrrrrrrrrr
greets :hat-tip:

#17 fajanko

fajanko

    Jani Posta

  • GPLLinks Team
  • PipPipPipPipPipPipPipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Budapest, HU
  • Interests:graphic design, games, languages
  • Sim interest:GPL

Posted Feb 01 2011 - 04:19 AM

Thanks for the upgrade!


I wonder if this tool could be integrated into GEM somehow.

#18 Remy

Remy

    Matra boy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 540 posts
  • Gender:Not Telling
  • Interests:Motor Racing, Football
  • Sim interest:GPL

Posted Feb 01 2011 - 05:28 AM

What would be interesting is to force the use of fog, especially for online races  :yeah:

Dunno why I'm thinking about the 67 F2 Südschleife race  :P

Edited by Remy, Feb 01 2011 - 05:30 AM.


#19 fajanko

fajanko

    Jani Posta

  • GPLLinks Team
  • PipPipPipPipPipPipPipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Budapest, HU
  • Interests:graphic design, games, languages
  • Sim interest:GPL

Posted Feb 06 2013 - 01:36 AM

Thick fog in Brno. I'm still in love with this effect :)



[ fog ]
type = 1 ; 0 means no fog
density = 5.0 ; from 0.1 to 9.9, higher value means thicker fog
fog_r = 175 ; red 0-255
fog_g = 175 ; green 0-255
fog_b = 185 ; blue 0-255

Edited by fajanko, Feb 06 2013 - 01:36 AM.


#20 ginetto

ginetto

    GPL track editor

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 3,315 posts
  • Gender:Male
  • Location:Lombardia, Italia
  • Interests:Mountain
  • Sim interest:GPL

Posted Feb 06 2013 - 04:37 AM

View Postfajanko, on Feb 06 2013 - 01:36 AM, said:

Thick fog in Brno. I'm still in love with this effect :)
very poetic :cool:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Sim Racing Links