compositor "render_custom"

What it says on the tin: a place to discuss proposed new features.
Post Reply
Posts: 15
Joined: Wed Aug 04, 2010 8:22 pm
x 1

compositor "render_custom"

Post by digitalgibs »

So it's become pretty clear to me that this option is currently fairly useless.
  • No Begin/End capability
    No control over the TargetOperation before it is queued.
I just wanted to create a custom render pass that allowed me to render the entire scene using a single material. Since I have zero control over the drawing, this task is impossible or requires pages of hacks. Adding those two simple features would allow developers to register and unregister listeners or inject their own render calls without double-rendering the scene.

User avatar
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: compositor "render_custom"

Post by so0os »

You can use mViewport->setMaterialScheme("name"); to set scheme name for a viewport. And to avoid having to write it for each material, you can use MaterialManager::Listener and override handleSchemeNotFound. Example of this can be found here:

Also, you can do this in compsoitor:

Code: Select all

target something
			input none
			material_scheme myscheme
			pass clear
			pass render_scene
It's all covered in the glow wiki thingie, go take a look!
Sos Sosowski :)

Post Reply