Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
typewriter1 opened this issue Oct 16, 2018 · 9 comments

Comments

@typewriter1
Copy link

typewriter1 commented Oct 16, 2018

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.

@tobspr
Copy link
Owner

tobspr commented Oct 16, 2018

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

@typewriter1
Copy link
Author

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@vertex-voxelize@-2654568264634693128-00000100.glsl, /$$rptemp/$$effect-skybox@fragment-voxelize@-2654568264634693128-00000100.glsl' took 108.36 ms
[!] RPLoader                  Loading '/$$rptemp/$$effect-skybox@vertex-envmap@-2654568264634693128-00000100.glsl, /$$rptemp/$$effect-skybox@fragment-envmap@-2654568264634693128-00000100.glsl' took 112.72 ms
[!] RPLoader                  Loading '/$$rptemp/$$effect-skybox@vertex-forward@-2654568264634693128-00000100.glsl, /$$rptemp/$$effect-skybox@fragment-forward@-2654568264634693128-00000100.glsl' 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
Copy link
Author

Is this intended to run on Intel GPU's?

@typewriter1 typewriter1 changed the title Black screen with scattering plug-in Scattering Plugin Appears Broken - Only black screen showing when it is enabled Jan 1, 2019
@ghost
Copy link

ghost commented Mar 10, 2020

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

@ohouha
Copy link

ohouha commented Oct 28, 2020

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

@typewriter1
Copy link
Author

No

@222464
Copy link

222464 commented Apr 1, 2021

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

@kergalym
Copy link

kergalym commented Dec 26, 2021

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

@zikaura
Copy link

zikaura commented Apr 21, 2022

So can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants