A Panda3D utility to simplify setting up multi-pass rendering systems
Project description
Render Pass
This library is intended to make multi-pass rendering a little easier in Panda3D. Each RenderPass objects represents a render target and a scene to render. If no scene is given, a fullscreen quad is rendered. This library is meant to replace the FilterManager found in Panda3D's Direct library.
Example
The code below was added to the "Roaming Ralph" demo to do HDR rendering.
The full sample can be found in samples/roaming-ralph
.
self.render.set_attrib(LightRampAttrib.make_identity())
fb_props = FrameBufferProperties()
fb_props.set_float_color(True)
fb_props.set_rgba_bits(16, 16, 16, 0)
fb_props.set_depth_bits(32)
scene_pass = RenderPass(
'scene',
camera=base.camera,
scene=base.render,
frame_buffer_properties=fb_props,
clear_color=LColor(0.53, 0.80, 0.92, 1),
)
filter_pass = RenderPass(
'filter',
shader=Shader.load(Shader.SL_GLSL, 'shaders/fsq.vert', 'shaders/fsq.frag')
)
filter_pass._root.set_shader_input('render', scene_pass.output)
card = filter_pass.buffer.getTextureCard()
card.setTexture(filter_pass.output)
card.reparentTo(render2d)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for panda3d-render-pass-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c168252f9024adc53bb291f7039bd18d1dc554d9cb1f65a3185ffb7801dd54 |
|
MD5 | 38ee240481a386a589e0490a6368c2fc |
|
BLAKE2b-256 | 2233b88b73d30ae5b63ab86c9381c95457928fb17da005927ce7cedc2c8c3c6d |
Close
Hashes for panda3d_render_pass-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141872a1f4dbf12be5f206b783b9e0e084b7e9b7f5bc9e4ea1383e418b03756f |
|
MD5 | 0e7bba430bdf2562b1bd28e5b8ae9b7b |
|
BLAKE2b-256 | 1fa52dd3b9860b3f9064ce57ebd05cadffcac6d3b408743d364d8516f06afe6f |