JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 614 forks source link

Glitch in the swamp leven in Jedi Outcast #548

Closed aronkihui closed 10 years ago

aronkihui commented 10 years ago

captura de pantalla 2014-05-26 a la s 23 05 16

It is OpenJO running on OSX. I didn't find another bug previous this level.

ensiform commented 10 years ago

We already know, the level is totally bad it is not specific to OSX.

Weather and such are not anywhere similar between the two games in terms of code wise. Thus it looks like this.

BSzili commented 10 years ago

@aronkihui You can turn off the detailed shaders as a workaround.

ensiform commented 10 years ago

I don't think that affects this.

BSzili commented 10 years ago

It removed the bright squares near the water surfaces for me.

aronkihui commented 10 years ago

mmm... so, this glitch is imposible to fix without turn off detailed shaders yet? what about the cfg file?

Razish commented 10 years ago

It's fixable. We just don't know what causes it yet.

BSzili commented 10 years ago

As a quick experiment I patched up tr_WorldEffects.cpp from Jedi Outcast to compile with OpenJK, but it didn't help. The rain looked different, but the glitchy particles were still there. I'd say it's the fog surfacesprite that does this. That would explain why disabling the detail pass helps.

ensiform commented 10 years ago

It's a combination I think of quick sprites too.

ensiform commented 10 years ago

Kind of surprised that disabling detail even helps cause the weather and quick sprites are rendered manually without the regular drawing code.

BSzili commented 10 years ago

The surfaceSprite shader pass is marked as detail, so it gets turned off:

    {
        clampmap gfx/sprites/fog
            surfaceSprites effect 20 8 50 300
            ssFademax 1000
            ssFadescale 2
            ssVariance 2 1
            ssWind 4
            ssFXDuration 5000
            ssFXGrow 2 2
            ssFXAlphaRange 0.75 0
            ssFXWeather
        blendFunc GL_ONE GL_ONE
        detail
    }