Overriding a CameraInputSourceComponent

Yo,

Let’s say I have a Camera with a CameraInputSourceComponent connected to its Base Components. When doing that, I’m able to retrieve “upstream” the IInputSource of the Window my camera is connected to. Cool.

Now, what if I want to override this IInputSource from downstream? Usecase is : this camera is connected to a SceneTexture, which, I guess, does not have the notion of an IInputSource. This Textureis then composited/blahblah, and displayed on a RenderWindow.

I would like to take the IInputSource of that RenderWindow and “pass it” to my Camera.

So far, I have tried the following :

But it does not seem to do anything. Both the output of GetComponent and the Input Source pad are not null.

Anyone has an idea?

Thanks!

1 Like

Not exactly what you were asking for but is using a SceneWindow also a possibility?

A-ha, yes, going top to bottom rather than the other way around could be an option. I’d have to check if can replace the final RenderWindow with a SceneWindow though.

Thanks for the suggestion!

Meanwhile, if someone has a clue on doing with the CameraInputSourceComponent I’m all ears :)

You can set the InputSource of the RenderWindow directly as well:

Thanks @tonfilm, the actual setup is a bit more complex but I ended up passing the input source via a pad as you suggested. Not ideal as I would have wanted to go with the components, but that’ll do for now.

Thanks!

Does this work for you?:


SetInputSource.vl (30.0 KB)

Thanks @bjoern, looks like what I tried and did not get any result. Glad to see it’s working in your isolated tests setup, will double-check what could have been wrong in my case.

Cheers!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.