wackazong
New Member
I want to add a fade effect to the motion-effects plugin (the motion-transition part of it). motion-transition resizes/animates sources during a transition. I want to add the feature that the frontmost source is faded out during the transition.
The plugin calls the obs_source_video_render function in its video_render function for all source. I have no idea how I can change the opacity of one source depending on the transition time. I studied the OBS API documentation and I think I need to apply an effect to the source but I cannot find an example for applying an effect to a source. I am confused that I should not pass an effect to video_render but should use draw_source instead, but draw_source already takes a texture as parameter.
The plugin calls the obs_source_video_render function in its video_render function for all source. I have no idea how I can change the opacity of one source depending on the transition time. I studied the OBS API documentation and I think I need to apply an effect to the source but I cannot find an example for applying an effect to a source. I am confused that I should not pass an effect to video_render but should use draw_source instead, but draw_source already takes a texture as parameter.
Last edited: