Page 1 of 1

Unity RenderTexture support

PostPosted: Sun Nov 12, 2017 4:00 am
by elecman
A standard Unity material which uses a RenderTexture in one of material texture slot doesn't work (texture ignored). Any chance of supporting this?

Re: Unity RenderTexture support

PostPosted: Tue Nov 14, 2017 9:45 am
by Xhed
There is currently no method in Unity for us to detect when a render texture has been updated (other than checking all pixels every frame, which is too costly), so there is no point in supporting them at this time.

Re: Unity RenderTexture support

PostPosted: Thu Nov 16, 2017 11:19 pm
by elecman
I know when my own render texture is updated though (every frame), so there are two ways you can easily support this:

-In game mode, assume the render texture is updated every frame and re-render accordingly.
-Provide an API so the user can indicate when a render texture has been updated.

It is important that some form of support for render textures is provided because I use them to render vector graphics for electronic aircraft instruments. The xaml/svg is rendered into a render texture using NoesisGUI.

Image

Any thoughts?

Re: Unity RenderTexture support

PostPosted: Fri Nov 17, 2017 3:22 pm
by Xhed
Updating every frame could be a workable approach for when you're recording an animation. During scene editing, this would be problematic since it would cause Octane to restart rendering constantly.
Having an API call could prove to be useful, though you would need a script to update your textures if we go that route.

We need to think carefully about how we want to approach this, so that we can keep it usable and as non-obtrusive as possible.

Re: Unity RenderTexture support

PostPosted: Sat Nov 18, 2017 9:03 am
by elecman
I understand. Thanks for considering :-)