RenderPipeline icon indicating copy to clipboard operation
RenderPipeline copied to clipboard

Scattering Plugin Appears Broken - Only black screen showing when it is enabled

Open typewriter1 opened this issue 5 years ago • 9 comments

I have had this working for me before, but I just updated to the latest master and RenderPipeline works better now (lights did not work, I got an error about IesDatasetTex (actually, there is no error any more, but lights still have no effect)).

However, now, when I run the samples with only scattering enabled and using either eric_bruenton or hosek_wilkie, all I see is a black screen with some white for light.

Windows 10, Intel GPU.

typewriter1 avatar Oct 16 '18 20:10 typewriter1

Do you get any errors on the console? Also, Intel GPUs are known to cause trouble

tobspr avatar Oct 16 '18 21:10 tobspr

When running the car demo with no plugins except scattering:

RenderPipeline-master\samples\06-Car>ppython main.py
[>] CORE                      Using panda3d-supplied core module
[>] RenderPipeline            Using Python 3.6 with architecture win_amd64
[>] RenderPipeline            Using Panda3D 1.10.0 built on Aug 12 2018 16:43:23
[>] RenderPipeline            Using git commit 00b5c9d168b225bbd5bc17acf78c24654aa6f27f
[>] MountManager              Auto-Detected base path to /c/Users/avise/Desktop/Games/RenderPipeline-master
[>] RenderPipeline            Mount manager was not mounted, mounting now ...
[>] MountManager              Setting up virtual filesystem
[>] MountManager              Mounting auto-detected config dir: /c/Users/avise/Desktop/Games/RenderPipeline-master/config/
[>] MountManager              Mounting ramdisk as /$$rptemp
[>] RenderPipeline            No settings loaded, loading from default location
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
[>] RenderPipeline            Driver Version = 4.3.0 - Build 24.20.100.6344
[>] RenderPipeline            Driver Vendor = Intel
[>] RenderPipeline            Driver Renderer = Intel(R) HD Graphics 630
[>] RenderPipeline            Render resolution is 1600 x 900
[>] LightManager              Tile size = 24 x 16 , Num tiles = 67 x 57
[>] GPUCommandQueue           Allocating command buffer of size 32768
[>] GroupedInputBlock         Native UBO support = False
[!] RPLoader                  Loading '/$$rp/data/default_cubemap/cubemap.txo' took 241.05 ms
[!] RPLoader                  Loading '/$$rp/data/builtin_models/skybox/skybox.txo' took 84.63 ms
[>] PluginManager             Loading plugin settings
[>] PluginManager             Creating plugin instances ..
[>] Debugger                  Creating debugger
[>] plugin:scattering         Loading scattering method for 'eric_bruneton'
[>] StageManager              Setup stages ..
[>] StageManager              Preparing stages ..
[>] StageManager              Writing shader config
[!] RPLoader                  Loading '/$$rptemp/$$effect-skybox@[email protected], /$$rptemp/$$effect-skybox@[email protected]' took 108.36 ms
[!] RPLoader                  Loading '/$$rptemp/$$effect-skybox@[email protected], /$$rptemp/$$effect-skybox@[email protected]' took 112.72 ms
[!] RPLoader                  Loading '/$$rptemp/$$effect-skybox@[email protected], /$$rptemp/$$effect-skybox@[email protected]' took 106.94 ms
[!] RPLoader                  Skipping further loading warnings (max warning count reached)
[>] ScatteringMethodEricBruneton Precomputing ...
[>] RenderPipeline            Finished initialization in 4.479 s, first frame: 3
[!] RenderPipeline            env_probes plugin is not loaded - cannot add environment probe
[>] RenderPipeline            Took 8.255 s until first frame
[>] ExposureWidget            Disabling exposure widget, could not find the exposure data.
[!] Panda3D                   :linmath(warning): Tried to invert singular LMatrix4.
[>] RenderPipeline            Hiding loading screen after 10 pre-rendered frames.


capture

I get the warning [!] Panda3D :linmath(warning): Tried to invert singular LMatrix4. even with scattering disabled.

typewriter1 avatar Oct 17 '18 14:10 typewriter1

Is this intended to run on Intel GPU's?

typewriter1 avatar Nov 08 '18 18:11 typewriter1

I have an nvidia gpu and I also have problems with scattering. I get these errors Screenshot_2020-03-10_23-43-48

ghost avatar Mar 10 '20 22:03 ghost

@typewriter1 right now I got same issues, Do you get any solution?

ohouha avatar Oct 28 '20 05:10 ohouha

No

typewriter1 avatar Oct 28 '20 07:10 typewriter1

AMD GPU, Manjaro Linux. Same errors, I am guessing there is no fix yet?

222464 avatar Apr 01 '21 00:04 222464

I have an nvidia gpu and I also have problems with scattering. I get these errors Screenshot_2020-03-10_23-43-48

Mesa OpenGL spec doesn't allow extension to be defined in the middle of a shader, so I think:

This could be fixed by moving defined extension:

#extension GL_ARB_shading_language_420pack : enable

from

rpplugins/scattering/shader/eric_bruneton/scattering_common.glsl

to

rpplugins/scattering/shader/apply_scattering.frag.glsl

and placing it after the line

#version 430

kergalym avatar Dec 26 '21 12:12 kergalym

So can we close this?

zikaura avatar Apr 21 '22 13:04 zikaura