-
Notifications
You must be signed in to change notification settings - Fork 133
Getting Started
Using the Render Pipeline only requires a few steps to setup:
For the pipeline you need a recent Panda3D build. You can either use a precompiled build from here: Panda3D Devel SDK Downloads or compile it yourself, using the sources from the Panda3D git repository (instructions can be found here).
When you successfully installed/compiled Panda3D, head over to the next step. In case you have trouble compiling it, you can always ask for help on the forums or the panda3d irc channel on freenode.
You should download the latest version from github, by cloning the repository, for example with:
git clone https://github.com/tobspr/RenderPipeline --depth=1 --branch master --single-branch render_pipeline
Alternatively you can use the Download ZIP
button. Place the pipeline in a subfolder of your project, e.g. render_pipeline/
. If you don't have a project yet, or just want to run the samples, it does not matter where you place the render pipeline.
Before use, you must run setup.py
. This will configure various stuff including unpacking
the pipeline assets.
You will also be asked if you want to use the C++ modules. If you want to use the C++ modules, see the instruction on how to compile them here.
If you reached this point, the pipeline should now be setup, and you should be able to run all samples. Verify that the samples run correctly by comparing them to the included screenshots (The screenshots might be outdated sometimes, but I try my best to keep them up-to-date).
You can find a code-snippet showing how to initialize the pipeline here: Sample: Loading the Pipeline.
The sample shows the basic code required to run the pipeline.
The setup.py
script also offers to install this sample amonst others.
In the most cases, you want to store the pipeline in a subfolder. If your example fails to run with:
ImportError: cannot import name rpcore
or a similar issue, then make sure the RenderPipeline main folder is on your system path. You can configure this in python by adding sys.path.insert(0, "path/to/render/pipeline/)
before the import.
To configure the various plugins that control the pipeline, see the Plugin Configurator. (Note, you need the PyQt4 libraries.)
There is also a Time of day editor, see Time of Day.
In a running program, you can use these hotkeys to inspect the pipeline:
When you start adding the render pipeline to your own program, then in order to make your objects shaded, you have to add some lights. You can find a list of supported lights at the Lights page, also more detailed information how to create a light.
Rendering Pipeline by tobspr (c) 2014 - 2016
For developers: