Skip to main content

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.


The code below was added to the "Roaming Ralph" demo to do HDR rendering. The full sample can be found in samples/roaming-ralph.

        fb_props = FrameBufferProperties()
        fb_props.set_rgba_bits(16, 16, 16, 0)

        scene_pass = RenderPass(
            clear_color=LColor(0.53, 0.80, 0.92, 1),

        filter_pass = RenderPass(
            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()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panda3d-render-pass-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page