Frictional Games Forum (read-only)
Post Effects unusable with Penumbra Collection from Desura - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Penumbra Series (https://www.frictionalgames.com/forum/forum-22.html)
+---- Forum: Linux - Penumbra (https://www.frictionalgames.com/forum/forum-25.html)
+---- Thread: Post Effects unusable with Penumbra Collection from Desura (/thread-23562.html)

Pages: 1 2


Post Effects unusable with Penumbra Collection from Desura - hamishwilson - 10-11-2013

I recently purchased the full Penumbra Collection on Desura and I am having a problem with some of the graphical effects of the game.

While the menus and introductions work as expected, upon starting the actual game proper I am greeted by only a black screen in both Black Plague and Overture.

This can be remedied by turning of the Post Effects in the graphical settings menu, but that makes it so that a lot of the lighting effects don't work, such as the beam of the flashlight, for instance. Lowering the shader settings the medium mitigates this somewhat, but the game is then plagued by numerous graphical errors.

I have confirmed that this is not a problem with Desura itself by playing with the binaries independent of the client, and I have also confirmed it is not a problem with my hardware or my drivers, as a previous version of Penumbra I acquired independently functions as expected. Plus I am well into Trine 2, which should prove to be a much greater graphical stress test than Penumbra.

Which seems to indicate that the problem is with the game itself, which is out of my control.

The version that works is 1.0.2553 of Overture and 1.0.2567 of Black Plague.

The version of the game on Desura is version 1.1.1.

HPL Engine log:
Code:
-------- THE HPL ENGINE LOG ------------

Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating resource managers
Misc Creation
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init low level graphics
Setting video mode: 1280 x 720 - 32 bpp
Init Glee...OK
Setting up OpenGL
  Max texture image units: 16
  Max texture coord units: 8
  Two sided stencil: 1
  Vertex Buffer Object: 1
  Anisotropic filtering: 1
  Max Anisotropic degree: 16
  Multisampling: 1
  Vertex Program: 1
  Fragment Program: 1
  NV Register Combiners: 0
  NV Register Combiners Stages: 148807680
  ATI Fragment Shader: 0
Creating graphic systems
  Creating Renderer2D
  Renderer2D created
  Creating Renderer3D
   Load Renderer3D gpu programs:
    Extrude
CG: 'ShadowExtrude_vp.cg' using profile: 'arbvp1'
CG: 'ShadowExtrude_fp.cg' using profile: 'arbfp1'
    Diffuse Vertex
CG: 'Diffuse_Color_vp.cg' using profile: 'arbvp1'
    Diffuse Fragment
CG: 'Diffuse_Color_fp.cg' using profile: 'arbfp1'
    Fog
CG: 'Fog_Solid_vp.cg' using profile: 'arbvp1'
CG: 'Fog_Solid_fp.cg' using profile: 'arbfp1'
   Creating fog textures: Solid Additive Alpha
CG: 'refract_vp.cg' using profile: 'arbvp1'
CG: 'refract_fp.cg' using profile: 'arbfp1'
CG: 'refract_special_fp.cg' using profile: 'arbfp1'
   init sky box
  Renderer3D created
Creating screen buffers size 1280.000000 : 720.000000
Creating programs
CG: 'PostEffect_Blur_vp.cg' using profile: 'arbvp1'
CG: 'PostEffect_Blur_Rect_fp.cg' using profile: 'arbfp1'
CG: 'PostEffect_Blur_2D_fp.cg' using profile: 'arbfp1'
CG: 'PostEffect_Bloom_vp.cg' using profile: 'arbvp1'
CG: 'PostEffect_Bloom_fp.cg' using profile: 'arbfp1'
CG: 'PostEffect_Motion_vp.cg' using profile: 'arbvp1'
CG: 'PostEffect_Motion_fp.cg' using profile: 'arbfp1'
The compile returned an error.
-----------------------------------
core/programs/PostEffect_Motion_fp.cg(28) : error C5013: profile does not support "for" statements and "for" could not be unrolled.
-----------------------------------
CG: Error loading: 'core/programs/PostEffect_Motion_fp.cg'!
ERROR: Couldn't create program 'PostEffect_Motion_fp.cg'
Dynamic loops in motion blur fp not supported, loading static instead.
CG: 'PostEffect_Motion_staticloop_fp.cg' using profile: 'arbfp1'
CG: 'PostEffect_DoF_vp.cg' using profile: 'arbvp1'
CG: 'PostEffect_DoF_fp.cg' using profile: 'arbfp1'
  RendererPostEffects created
Adding engine materials
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL.
  Trying to open audio device... Success!
  Device name: OpenAL Soft
  Number of mono sources: 32
  Vendor name: OpenAL Community
  Renderer: OpenAL Soft
  OpenAL Version Supported: 1.1
  EFX: 0
  Output Devices:
    Built-in Audio Analog Stereo
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
WARNING: Language entry 'EventKeyInNoPower' in category '01_10_small_shaft' already exists!
Initializing Penumbra: Overture
  Version    $Rev: 3033 $
  Date    $Date: 2010-12-12 21:46:28 +0000 $
Checking Supported Profiles
  Profile CG_PROFILE_ARBVP1 is supported
  Profile CG_PROFILE_ARBFP1 is supported
  Profile CG_PROFILE_GLSLV is supported
  Profile CG_PROFILE_GLSLF is supported
  Profile CG_PROFILE_GLSLC is supported
Trying to load vertex program!
CG: 'Test' using profile: 'arbvp1'
Success!
CG: 'DiffuseSpec_Light_vp.cg' using profile: 'arbvp1'
CG: 'DiffuseSpec_Light_Spot_vp.cg' using profile: 'arbvp1'
CG: 'BumpSpec_Light_fp.cg' using profile: 'arbfp1'
CG: 'BumpSpec_Light_Spot_fp.cg' using profile: 'arbfp1'
CG: 'Ambient_Color_fp.cg' using profile: 'arbfp1'
--------------------------------------------------------

Game Running
--------------------------------------------------------
WARNING: Could not find language file entry 'Output Device:'
WARNING: Could not find language file entry 'TipSoundOutputDevice'
Loading collada for 'maps/level01_02_mine_entrance.dae' took: 291 ms
CG: 'BumpColorSpec_Light_fp.cg' using profile: 'arbfp1'
CG: 'BumpColorSpec_Light_Spot_fp.cg' using profile: 'arbfp1'
CG: 'Fog_Trans_vp.cg' using profile: 'arbvp1'
CG: 'Fog_Trans_Alpha_fp.cg' using profile: 'arbfp1'
CG: 'Diffuse_Light_vp.cg' using profile: 'arbvp1'
CG: 'Diffuse_Light_Spot_vp.cg' using profile: 'arbvp1'
CG: 'Bump_Light_fp.cg' using profile: 'arbfp1'
CG: 'Bump_Light_Spot_fp.cg' using profile: 'arbfp1'
CG: 'Diffuse_Light_fp.cg' using profile: 'arbfp1'
CG: 'Diffuse_Light_Spot_fp.cg' using profile: 'arbfp1'
CG: 'Fog_Trans_Mod_fp.cg' using profile: 'arbfp1'
ERROR: Couldn't find particle system file 'particle_dust.ps'
ERROR: Couldn't create particle system 'sust01' of type 'particle_dust'
ERROR: Couldn't find particle system file 'dust_sust01.ps'
ERROR: Couldn't create particle system 'particle' of type 'dust_sust01'
ERROR: Couldn't load particle system 'particle' with type 'dust_sust01'
WARNING: Could not find language file entry 'Output Device:'
WARNING: Could not find language file entry 'TipSoundOutputDevice'
--------------------------------------------------------

Statistics
--------------------------------------------------------
Medium framerate: 42.864538
--------------------------------------------------------

User Exit
--------------------------------------------------------
  Saving to config
  Saving keys
  Saving to config
  Saving keys
Reset maphandler
Exit Player
Exit Button Handler
Exit Map Handler
Exit Game Message Handler
Exit Radio Handler
Exit Inventory
Exit Fade Handler
Exit Save Handler
Exit Trigger Handler
Exit Attack Handler
Exit Notebook
Exit Numerical panel
Exit Intro story
Exit Death menu
Exit Graphics helper
Exit Main menu
Exit Player hands
Exit Music handler
Exit Map Load Text
Exit PreMenu
Exit Credits
Exit Demo end text
Saving config
Exit Effect Handler
Exit Game
--------------------------------------------------------

Exiting Gui Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Scene Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Input Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Sound Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Graphics Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Resources Module
--------------------------------------------------------
Done with tilesets
Done with fonts
Done with scripts
Done with particles
Done with sounds
Done with meshes
Done with materials
Done with Gpu programs
Done with images
Destroyed all textures
Done with sound entities
Done with animations
All resources deleted
--------------------------------------------------------

Exiting Physics Module
--------------------------------------------------------
--------------------------------------------------------

Exiting System Module
--------------------------------------------------------
--------------------------------------------------------

Deleting game setup provided by user
- Deleting lowlevel stuff.
  Physics
  Sound
  Input
  Resources
  System
  Graphics
  Haptic
HPL Exit was successful!
Saving last config

|--Memory Manager Report-------------------------------|
|
| No memory leaks detected. Memory left: 0
|
|------------------------------------------------------|

System Specifications:
Code:
Distribution: Arch Linux
Graphics Driver: R600 Gallium3D Driver
Desktop Environment: Xfce with compositing

Motherboard: MSI 760GM-E51(FX)
Processor: AMD Phenom II X4 955 BE 3.2 Ghz
Video Card: Diamond AMD Radeon HD 4670
Memory: 4 Gigabytes DDR3 PC10666, 1333 MHz
Boot Drive: 500 GB Western Digital Caviar Black



RE: Post Effects unusable with Penumbra Collection from Desura - hamishwilson - 10-13-2013

I'm a bit surprised I have not gotten a response yet. Do you require more information? If so, how can I provide it?


RE: Post Effects unusable with Penumbra Collection from Desura - Ashtoreth - 10-16-2013

I think that Urkle is the person in charge of technical support for Linux users here on the forum. He might not have seen your thread yet. Try sending him a PM maybe. Smile


RE: Post Effects unusable with Penumbra Collection from Desura - hamishwilson - 10-21-2013

I can now confirm that Amnesia also works perfectly fine.


RE: Post Effects unusable with Penumbra Collection from Desura - jens - 10-22-2013

Could be some of the old lib files in the Libs folders of the Penumbra game that causes it, possibly try and delete (or temp remove) some to use the system installed instead and see if that helps.

Incase the shaders are incorrect I attached them so you can test and use these instead.


RE: Post Effects unusable with Penumbra Collection from Desura - hamishwilson - 10-22-2013

Libraries are my first recourse when solving a problem (you should see some of the hoops I jumped with Frozenbyte support over the libraries included with their games), but alas that was not the case here, as I had already confirmed.

Thankfully, your second suspicion proved correct, and after replacing the shaders all three games run beautifully now. I am grateful for your help, despite having to sit on this issue for the past week and a half. Smile

One question now remains - is this just my copy, or does it affect more Desura users? After all, I downloaded a version from both the Desura client and independently through the Desura web store, and both had issues. There might be something more going on.


RE: Post Effects unusable with Penumbra Collection from Desura - Urkle - 10-22-2013

Penumbra uses NVidia Cg to handle shaders, where as Amnesia uses GLSL directly. My initial thought would be to try swapping out different versions of Nvidia Cg in the game lib directory and see how it affects things.


RE: Post Effects unusable with Penumbra Collection from Desura - hamishwilson - 10-22-2013

I tried swapping Cg libraries, but the older version I had was using my system ones provided by Arch, which I forced the Desura version to use with no effect. Replacing the shaders did help.


RE: Post Effects unusable with Penumbra Collection from Desura - Urkle - 10-22-2013

Would you mind doing some more investigation on which shader helped?


RE: Post Effects unusable with Penumbra Collection from Desura - hamishwilson - 10-23-2013

I have done some limited poking around.

Going from a fresh install of the standalone Penumbra available from Desura, I started extracting some of the shaders one at a time, starting with the Post Effects:
Code:
PostEffect_Bloom_fp.cg - no blackness but limited effects, no ambient light, no light cast on objects by flahshlight/glowstick

PostEffect_Bloom_vp.cg - same

PostEffect_Blur_2D_fp.cg - same

PostEffect_Blur_Rect_fp.cg - same

PostEffect_Blur_vp.cg - same

PostEffect_DoF_fp.cg - same

PostEffect_DoF_vp.cg - same

PostEffect_Fallback01_Blur_2D_fp.cg - same

PostEffect_Fallback01_Blur_Rect_fp.cg -same

PostEffect_Blur_vp.cg - same

PostEffect_DoF_fp.cg - same

PostEffect_DoF_vp.cg - same

PostEffect_Fallback01_Blur_2D_fp.cg - same

PostEffect_Fallback01_Blur_Rect_fp.cg - same

PostEffect_Motion_fp.cg - same

PostEffect_Motion_staticloop_fp.cg - same

PostEffect_Motion_vp.cg - same

PostEffect_Offset_fp.cg - same

PostEffect_Offset_vp.cg - same

I moved on to try some of the ones that seemed related to light:
Code:
Bump2D_Light_fp.cg - same

Bump2D_Light_vp.cg - same

BumpColorSpec_Light_Spot_fp.cg - flashlight works, but not glowstick or lamps

BumpColorSpec_Light_fp.cg - glowstick and lamps work


However, even after playing the Desura version with all of the shaders copied over, I still noticed this error in the HPL log:
Code:
The compile returned an error.
-----------------------------------
core/programs/PostEffect_Motion_fp.cg(28) : error C5013: profile does not support "for" statements and "for" could not be unrolled.
-----------------------------------
CG: Error loading: 'core/programs/PostEffect_Motion_fp.cg'!
ERROR: Couldn't create program 'PostEffect_Motion_fp.cg'
Dynamic loops in motion blur fp not supported, loading static instead.