Pages: [1] 2
  Print  
Author Topic: Fog density is different between Oa and Q3  (Read 35558 times)
Falkland
Member


Cakes 6
Posts: 590


« on: September 13, 2010, 12:09:42 PM »

I've already noticed that the fog of the map dc_map12 , which is quite q3tourney5 with white fog instead of yellow fog , seems more dense than in q3tourney5.

But the problem is not the fog itself . Another italian player ( Berseker ) makes me noticed that the fog of dc_map12 is quite normal in Quake3 while it's more dense - so dense to compromise visibility - only in OA.
Logged
Falkland
Member


Cakes 6
Posts: 590


« Reply #1 on: September 15, 2010, 09:29:30 AM »

A follow up to point that it's the same for the map dc_map09 ( which regular quake3 correspondant map is q3dm4 ) which has fog around the location of the RA : the fog is much more dense in Openarena than in Quake3 that (and that's the new thing I've experimented ) it's impossible to see enemy even with (very) brightskins !!!.

Is there anything that can be done for this issue ?
Logged
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #2 on: September 15, 2010, 10:17:42 AM »

Manipulating the fog shader in order to make it less dense. It's the same shader used for the map q3tourney5. I can't remember the name, and where it's located.
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #3 on: September 15, 2010, 10:29:50 AM »

One should be aware that some maps (maybe czestctf2) need an update if the shader is changed because they need the dense version.
Logged

There are nothing offending in my posts.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #4 on: September 15, 2010, 10:50:08 AM »

Thus, we should be sure (how?) of which OpenArena maps currently use that shader, create a copy of that shader with another name, modify the original shader to make it look more similar to the Q3 one (restoring Q3 maps "compatibility"), and then modify the OpenArena maps to make them point to the copied version...

Quicker to say that to do, but I suppose this would be an important fix to put in the next release...
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Falkland
Member


Cakes 6
Posts: 590


« Reply #5 on: September 15, 2010, 11:07:54 AM »

Thus, we should be sure (how?) of which OpenArena maps currently use that shader, create a copy of that shader with another name, modify the original shader to make it look more similar to the Q3 one (restoring Q3 maps "compatibility"), and then modify the OpenArena maps to make them point to the copied version...

Quicker to say that to do, but I suppose this would be an important fix to put in the next release...

Fog shaders ( there are many of them , as I see :/ ) are grouped in the file scripts/oa_fog.shader while they are grouped in scripts/sfx.shader in Quake3 but how to know the original name of the fog shader used in q3tourney5 and q3dm4 ?

There's no reference to those maps in oa_fog.shader while other quake3 maps are referenced , eg q3tourney3 , q3dm9 , q3dm14
Logged
pulchr
Member


Cakes 34
Posts: 625



WWW
« Reply #6 on: September 15, 2010, 12:01:01 PM »

i would guess that the fog shader used in the q3tourney5 is "textures/sfx/fog_timdm1" and the one in q3dm4 is "textures/sfx/xdensegreyfog".
feel free to cut out the shaderlines from quake 3 if i'm not allowed to paste them here :/

quake3 "fog_timdm1":
Code:
textures/sfx/fog_timdm1
{
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap
//fogparms ( .615 .309 0 ) 1800
fogparms ( .615 .309 0 ) 616
}

openarena "fog_timdm1":
Code:
textures/sfx/fog_timdm1
{
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap
cull disable
fogparms ( 0.67059 0.48235 0.21961 ) 500

{
map textures/liquids/kc_fogcloud3.tga
blendfunc filter
tcMod turb .01 .5 0 .05
}
{
map textures/liquids/kc_fogcloud3.tga
blendfunc filter
tcMod scroll -.02 .02
}
}

quake3 "xdensegreyfog":
Code:
textures/sfx/xdensegreyfog
{
// Don't mess with this entry please.
// I use this for my dense low-lying fog
// -Xian
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap
qer_nocarve
fogparms ( 0.7 0.7 0.7 ) 1700
}

openarena "xdensegreyfog":
Code:
textures/sfx/xdensegreyfog
{
        surfaceparm trans
        surfaceparm nonsolid
surfaceparm fog
surfaceparm nomarks
        cull disable
        fogparms ( 0.4784 0.4784 0.4784 ) 128
}
Logged
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #7 on: September 15, 2010, 01:18:25 PM »

but how to know the original name of the fog shader used in q3tourney5 and q3dm4 ?

You can extract DO NOT LINK[/b]) h t t p s : / / openarena . wikia . com/wiki/List_of_missing_textures_and_shaders_of_Q3_and_TA_maps]all the shader names from the BSP tree, then check DO NOT LINK[/b]) h t t p s : / / openarena . wikia . com/wiki/List_of_Q3_and_TA_shaders]which shaders were in which Q3 shader definition file. The lists I've linked were made with a Perl script I published earlier (GPLv2). Although there's something wrong with the script, it doesn't extract all the shader names, so I used maps.clanarena.org more, but that site seems to be down. But maybe pulchr has another way.

Fix attached, only xdensegreyfog needed a change (distance to opaque increased to 1500), tested on q3_dm4, dc_map09, dc_map12.
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Falkland
Member


Cakes 6
Posts: 590


« Reply #8 on: September 15, 2010, 03:46:15 PM »

Thanks a lot guys for the useful infos and Udi for the useful infos and the fix.
Logged
Falkland
Member


Cakes 6
Posts: 590


« Reply #9 on: September 19, 2010, 10:09:57 AM »

I tested this fix a bit and I found that the value 1500 makes the fog a bit too light ... so I've tried scaling it ...

The best compromise is to have it at 900-1000
Logged
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #10 on: November 22, 2010, 05:37:11 PM »

Sorry, forgot about this one Embarrassed. Value changed to 1000:
package: z_fogfix_v2.pk3
Please test it, then it can be sent to the SVN commits thread.
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Falkland
Member


Cakes 6
Posts: 590


« Reply #11 on: November 23, 2010, 10:23:36 AM »

Sorry, forgot about this one Embarrassed. Value changed to 1000:
package: z_fogfix_v2.pk3
Please test it, then it can be sent to the SVN commits thread.

I've already tested with values between 900-1000 , so 1000 is OK for me
Logged
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #12 on: November 23, 2010, 12:59:08 PM »

Is this the patch that will fix fog in maps designed for Q3A and will "mess up" fog density in maps previously designed for OA?
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #13 on: November 23, 2010, 02:57:05 PM »

Is this the patch that will fix fog in maps designed for Q3A and will "mess up" fog density in maps previously designed for OA?

It fixes only one fog shader: xdensegreyfog. You can find that for example in q3dm4 at the red armor or dc_map12 (dreamcast version of q3tourney5). Are there more messed up fogs?
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #14 on: November 23, 2010, 03:50:02 PM »

This post talked also about "fog_timdm1" shader, but I don't know if it needs a fix, too..
« Last Edit: November 23, 2010, 04:57:36 PM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #15 on: November 23, 2010, 05:45:17 PM »

This post talked also about "fog_timdm1" shader, but I don't know if it needs a fix, too..

It wasn't as bad as xdensegreyfog before, but while I'm at it, I tweeked it a little:
Screenshot: fogfix_v3.jpg
Package: z_fogfix_v3.pk3
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #16 on: November 24, 2010, 02:41:59 PM »

A friend of mine created a Q3 map where the fog looks white/grey in Q3A, and yellow/orange in OpenArena. I asked to him, and he said that he used a texture called "fog_timctf1", in the "sfx" folder. If this may help...
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #17 on: November 24, 2010, 03:25:03 PM »

If you want to make a full check... I searched for all files called *fog* and for all .shader files that contained the word "fog" inside the pk3s of Quake3 and Team Arena:

Quote
In quake3 pak0.pk3
textures\liquids\kc_fogclud3.jpg
textures\sfx\portalfog.jpg

\scripts
base_floor.shader
common.shader
eerie.shader
gfx.shader
hell.shader
liquid.shader
sfx.shader
sky.shader
test.shader

In quake3 pak5.pk3
scripts\gfx.shader


In team arena pak0.pk3
textures\liquids\kc_fogcloud3.tga
textures\sfx\portalfog.tga
textures\sfx\ouchfog.tga

\scripts
base_floor.shader
common.shader
gfx.shader
jk_dm1.shader
jk_tourney1.shader
liquid.shader
sfx.shader
sky.shader
« Last Edit: December 06, 2010, 09:04:52 AM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #18 on: November 29, 2010, 12:15:57 PM »

Udi, are you still there?
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #19 on: November 29, 2010, 02:05:16 PM »

Udi, are you still there?

Yeah, I just didn't have time to make a full check. I'll do it until Friday.
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #20 on: December 06, 2010, 12:00:20 AM »

Version 4 is ready. I've checked all the fog definitions, but I left out those which were broken in Q3 too (missing textures). I've moved the Q3 compatible definitions out of the oa_fog.shader and oasfx.shader, all the fog shaders should be at their original places. I did not count it, but approximately 8-10 shaders were fixed. All the Q3 maps and 3rd party maps should be fine now, please test it!

Screenshot: fogfix_v4.jpg
Package: z_fogfix_v4.pk3 (if you got the old fogs, be sure to remove 3rd party packages which have another sfx.shader file)
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #21 on: December 06, 2010, 04:44:15 AM »

I tested my friend's map, and now the fog is correctly white there! ^_^
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Graion Dilach
Member


Cakes 12
Posts: 403



« Reply #22 on: December 06, 2010, 08:21:08 AM »

I can confirm it works. Also, I applause the fact that with this, dc_map12's fog don't look sliced from above.

Great work.
Logged

One shall remind what have he left behind... to actually realize that it's still cool.
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #23 on: December 07, 2010, 01:30:53 PM »

Here's a small update, the previous one had a regression. I've worked on the portal which can be seen in the basements on both q3dm7 and q3dm11, but the new images would have made the fog patch unnecessary big, so I rather removed them, but I left the shaders in, which made the previous somewhat working portal unusable. So now I removed the shaders affecting the portal, but the all the fog shaders are the same. (The new portal will eventually included in the next missing texture pack.)

Package: z_fogfix_v5.pk3 (remove previous version)

Now if no other bugs or regressions are found, it can go to the SVN commits thread, so please give it another try Smiley!
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #24 on: December 09, 2010, 03:28:12 PM »

My friend's map continues to work correctly.  Smiley

PS: You got a cake.
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Pages: [1] 2
  Print  
 
Jump to: