Skip to main content

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)

Release files for panda3d-render-pass 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for panda3d-render-pass 0.1.1
File Size Uploaded
panda3d-render-pass-0.1.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for panda3d-render-pass 0.1.1
File Interpreter ABI Platform
panda3d_render_pass-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / panda3d-render-pass-0.1.1.tar.gz

Download URL panda3d-render-pass-0.1.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
764f92934a4c3c7f83647e32e71a1887ae9cba0dadf4c5f971a0f1093b83ed7f
BLAKE2b-256 checksum
How to use checksums
62e6df251d8ec5ae33984ac0a7aace197b4d9b4ddfd0c21de891a0c3ef86143f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.11 CPython/3.7.3 Linux/5.0.7-arch1-1-ARCH

Release files / panda3d_render_pass-0.1.1-py3-none-any.whl

Download URL panda3d_render_pass-0.1.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff2bb99b8312fab9a34aacca99f0ea4afb441acba4c539a825f6fa08061d9990
BLAKE2b-256 checksum
How to use checksums
f15de27e684358a4940fd58a1968041b7465053745b13d49d9ab6f9ae1e13249
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.11 CPython/3.7.3 Linux/5.0.7-arch1-1-ARCH

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page