FulldomeCameraForUnity icon indicating copy to clipboard operation
FulldomeCameraForUnity copied to clipboard

RenderTexture of Fulldome view

Open PockPocket opened this issue 2 years ago • 2 comments

Hi,

I'm having difficulty to send a RenderTexture of my fulldome game view to Touch.Designer via Spout. It seems that I can only send the default camera view without the fulldome effect.

image

I feel that there's something I should do with the Cubemap Fbo slot attached to the fulldome camera component but I don't know what exactly.

Presenting in a Dome on May 16th, this real-time workflow would truly be a game changer.

Any input on how to get this working would be really appreciated.

Cheers, Mathieu.

PockPocket avatar May 06 '22 18:05 PockPocket

Small update on this issue, my cube map is now receiving the information from the fulldome script and a 4k x 4k white texture is being live streamed via spout to Touch designer.

image

RenderTexture settings: image

I'm not sure why the image is all white but I think I might be getting closer on figuring this out. Any ideas ?

Mathieu.

PockPocket avatar May 06 '22 19:05 PockPocket

It's been a long time since I don't use that plugin. Here's some tips from what I remember...

  • On the Camera, remove the FBO from Output.
  • Set the Spout capture to Camera, do not use an FBO.
  • The plugin uses Unity's Graphics.Blit() to render straight to the camera (we can see it on the Game view)
  • Since the Camera is being rendered by the Fulldome script, disable it. Yes, disable the Camera component!

Another alternative is to send the cubemap texture to Touch Designer and convert it to Dome on TD. (I don't know if that's possible, just an idea.)

rsodre avatar May 07 '22 00:05 rsodre