Unity RenderTexture support

Forums: Unity RenderTexture support
A public forum for discussing and asking questions about the Octane for Unity Alpha

Moderator: ChrisHekman

Unity RenderTexture support

Postby elecman » Sun Nov 12, 2017 4:00 am

elecman Sun Nov 12, 2017 4:00 am
A standard Unity material which uses a RenderTexture in one of material texture slot doesn't work (texture ignored). Any chance of supporting this?
elecman
Licensed Customer
Licensed Customer
 
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am

Re: Unity RenderTexture support

Postby Xhed » Tue Nov 14, 2017 9:45 am

Xhed Tue Nov 14, 2017 9:45 am
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.
- Rick
User avatar
Xhed
OctaneRender Team
OctaneRender Team
 
Posts: 239
Joined: Wed Jul 10, 2013 10:27 pm
Location: Breda, The Netherlands

Re: Unity RenderTexture support

Postby elecman » Thu Nov 16, 2017 11:19 pm

elecman Thu Nov 16, 2017 11:19 pm
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?
elecman
Licensed Customer
Licensed Customer
 
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am

Re: Unity RenderTexture support

Postby Xhed » Fri Nov 17, 2017 3:22 pm

Xhed Fri Nov 17, 2017 3:22 pm
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.
- Rick
User avatar
Xhed
OctaneRender Team
OctaneRender Team
 
Posts: 239
Joined: Wed Jul 10, 2013 10:27 pm
Location: Breda, The Netherlands

Re: Unity RenderTexture support

Postby elecman » Sat Nov 18, 2017 9:03 am

elecman Sat Nov 18, 2017 9:03 am
I understand. Thanks for considering :-)
elecman
Licensed Customer
Licensed Customer
 
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am

Return to Octane for Unity


Who is online

Users browsing this forum: No registered users and 12 guests

Fri Mar 29, 2024 12:08 pm [ UTC ]