Page 1 of 1

[Unity] Scriptable render loop

Posted: 30 Aug 2017, 17:49
by MF_Andreich
Question to authors of Noesis GUI.
Do you have any plans about exposing some api for integrate into scriptable render loops?

Re: [Unity] Scriptable render loop

Posted: 30 Aug 2017, 18:21
by sfernandez
Could you please elaborate a bit more what you want to do and what do you expect from NoesisGUI API?

Re: [Unity] Scriptable render loop

Posted: 30 Aug 2017, 18:26
by MF_Andreich
Right now if I use SRP Unity not call any callbacks on cameras, not call post processing messages... In this case NoesisGUI not rendered at all.
Its will be nice if you give to users fot this situation some methods and instructions like:
1. You must call this before render.
2. Then you must call this after.
3. Issue this plugin event.
4. ...
Just for integration in custom render loop. Maybe it must be (I think its will be better) clear static api which get render loop context and target camera as params without components.

var view = SRPUtils.RegisterView(xaml);
SRPUtils.PrepareToRender(view, renderContext);
SRPUtils.RenderToTexture(view, renderContext, renderTarget);
SRPUtils.RenderToCamera(view, renderContext, camera);

Re: [Unity] Scriptable render loop

Posted: 02 Sep 2017, 15:05
by jsantos
There is a helper class (NoesisRenderer) that provides a bunch of methods for just rendering noesis without using NoesisView monobehavior. I think this is going in the direction you need. Could you please have a look at it? We are open to suggestion and changes to this part. Thanks!