Deferred Pipeline w/ Physically Based Shading

So it breaks on the lighting stage. Looks like the lighting doesn’t work.
You can try to experiment with the lighting settings at the config/pipeline.yaml file

Anything specific? There’s a few settings and I have little to no idea what they do. Also I opened Scene.blend and rendered the car,


Maybe the issue is with the model itself?

I have tried to render the same example with the same model on nvidia 1050 GPU.
It’s something related to Intel GPU and lighting shaders.

1 Like

Just remembered I’ve got 2 gpus on my pc so I switched to the Radeon and it works!! Thank you for taking the time to help, and thank you @tobspr for putting this wonderful pipeline together!

Made a WHL package for RP - https://github.com/kitsune-ONE-team/RenderPipeline/releases/tag/v1.3.0
So now it could be installed with:
pip install https://github.com/kitsune-ONE-team/RenderPipeline/releases/download/v1.3.0/render_pipeline-1.3.0-py3-none-any.whl

2 Likes

That’s really cool, could you file a PR upstream? It would be great to have this on PyPI, and I think @tobspr has shown interest but hasn’t had the time. It would be great to have the RenderPipeline be trivially installable for any Panda user.

I noticed that panda3d is not marked as a dependency, is that on purpose?

Could dependency be resolved if Panda3D was installed from .exe or .deb?

Yes, if you have any valid copy of Panda3D on sys.path then pip will detect it as satisfying the dependency, because we always include a panda3d.dist-info directory.

Ok. Good. I’ll update the dependencies and make a PR.

1 Like

How do I upload the WHL to PyPi here - https://pypi.org/project/render_pipeline/ ?
Or should I make a new project with different name?

It would be good to reuse that same PyPI name. Perhaps ask Tobias to upload it to that URL or to add someone else as maintainer so that someone else can upload it.

You might need to bump the version so that it’s higher than the highest one already on there, 2.0. Not sure whether that matters since there are no downloads up there right now.

I would be more than happy to accept a maintainer for the package - just let me know who I should add to the package (@rdb I think it would also make sense to add you)

Thanks for this, some guys like me couldn’t find where to install it easily.

I installed this WHL package made by Yonnji, but when I create the render pipeline I get an error that a yaml file can’t be found: this is the console output:

`[>] CORE rpcore.native imported
[>] CORE Using panda3d-supplied core module
[>] RenderPipeline Using Python 3.7 with architecture win_amd64
[>] RenderPipeline Using Panda3D 1.10.6 built on Mar 19 2020 06:18:03
[>] RenderPipeline Using git commit c9f14a1209487c8335dd06bda10c6ac6d8420244
[>] MountManager Auto-Detected base path to /c/Panda3D-1.10.6-x64/python/lib/site-packages
[>] RenderPipeline Mount manager was not mounted, mounting now …
[>] MountManager Setting up virtual filesystem
[>] MountManager Mounting auto-detected config dir: /c/Panda3D-1.10.6-x64/python/lib/site-packages/config/
[>] MountManager Mounting ramdisk as /$$rptemp
[>] RenderPipeline No settings loaded, loading from default location

[!!!] YAMLLoader Could not find or open file: /$$rpconfig/pipeline.yaml

[!!!] YAMLLoader No such file or directory: ‘/$$rpconfig/pipeline.yaml’

Traceback (most recent call last):
File “c:\Panda3D-1.10.6-x64\python\lib\site-packages\rplibs\yaml_init_.py”, line 26, in load_yaml_file
with open(filename, “r”) as handle:
File “C:\Panda3D-1.10.6-x64\direct\stdpy\file.py”, line 105, in open
raise FileNotFoundError(“No such file or directory: ‘%s’” % (filename))
FileNotFoundError: No such file or directory: ‘/$$rpconfig/pipeline.yaml’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “mainC.py”, line 3, in
from rendererC import *

File “c:\Panda3D-1.10.6-x64\python\lib\site-packages\rpcore\render_pipeline.py”, line 160, in create
self._init_showbase(base)
File “c:\Panda3D-1.10.6-x64\python\lib\site-packages\rpcore\render_pipeline.py”, line 475, in init_showbase
self.pre_showbase_init()
File “c:\Panda3D-1.10.6-x64\python\lib\site-packages\rpcore\render_pipeline.py”, line 140, in pre_showbase_init
self.load_settings("/$$rpconfig/pipeline.yaml")
File “c:\Panda3D-1.10.6-x64\python\lib\site-packages\rpcore\render_pipeline.py”, line 96, in load_settings
self.settings = load_yaml_file_flat(path)
File "c:\Panda3D-1.10.6-x64\python\lib\site-packages\rplibs\yaml_init
.py", line 57, in load_yaml_file_flat
return _flatten(load_yaml_file(filename))
File "c:\Panda3D-1.10.6-x64\python\lib\site-packages\rplibs\yaml_init
.py", line 31, in load_yaml_file
raise Exception(“Failed to load YAML file: File not found”)
Exception: Failed to load YAML file: File not found
[>] MountManager Cleaning up …
`
I probably forgot to set a path variable but is there a simple solution to this?

Did you installed the latest version from https://github.com/kitsune-ONE-team/RenderPipeline/releases ?
The latest version is 1.3.3 at this moment.

Should I become a maintainer of RP? xD

yes, I just downloaded it this morning. Its 1.3.3.

Do you have file “pipeline.yaml” in your RP config path - /c/Panda3D-1.10.6-x64/python/lib/site-packages/config/ ?

Yes, I have not moved files to other folders. So its there, I checked.

It seems that the system does not know /$$rpconfig/, so it can’t find /$$rpconfig/pipeline.yaml. If I put the pipeline.yaml file in a fixed folder, for example c:/config/pipeline.yaml, and replace self.load_settings("/$$rpconfig/pipeline.yaml") with self.load_settings(“c:/config/pipeline.yaml”) in line 140 of render_pipeline.py, then it can find the file. But then it can’t find other paths, such as /$$rp/ etc.