-
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 here (use the master
branch).
When you successfully installed/compiled it, head over to the next step. In case you have trouble compiling it, you can always ask or help on the forums or the panda3d irc!
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 refactoring_beta --single-branch RenderPipeline
git submodule init
git submodule update
Alternatively you can use the Download ZIP
button. Place the pipeline in a subfolder of your project, e.g. RenderPipeline/
.
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.
You can find a code-snippet showing how to initialize the pipeline here: Roaming-Ralph Sample.
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 RenderPipeline
then make sure the RenderPipeline main folder is on your system path. You can configure this in python with sys.path.insert(0, "path/to/render/pipeline/)
. As a convenience function, you can also do from render_pipeline_importer import RenderPipeline
to import the render pipeline, assuming the pipeline is on your path.
To configure the various plugins that control the pipeline, see the Plugin Configurator. (Note, you need the Python Qt4 libraries.)
There is also a DayTime editor, see Time of Day.
In a running program, you can use these hotkeys to inspect the pipeline:
-
g
: toggle Render Mode selection -
c
: toggle Pipeline Visualizer -
v
: toggle Buffer and Image Browser -
r
: reload shaders -
u
: toggle updating PSSM lighting model
When you start adding the render pipeline to your own program, then in order to make your objects visible, 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: