User avatar
MF_Andreich
Topic Author
Posts: 11
Joined: 19 Jul 2017, 08:46

[Unity] Scriptable render loop

30 Aug 2017, 17:49

Question to authors of Noesis GUI.
Do you have any plans about exposing some api for integrate into scriptable render loops?
 
User avatar
sfernandez
Site Admin
Posts: 1915
Joined: 22 Dec 2011, 19:20

Re: [Unity] Scriptable render loop

30 Aug 2017, 18:21

Could you please elaborate a bit more what you want to do and what do you expect from NoesisGUI API?
 
User avatar
MF_Andreich
Topic Author
Posts: 11
Joined: 19 Jul 2017, 08:46

Re: [Unity] Scriptable render loop

30 Aug 2017, 18:26

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.

Sample:
var view = SRPUtils.RegisterView(xaml);
///....
SRPUtils.PrepareToRender(view, renderContext);
///...
SRPUtils.RenderToTexture(view, renderContext, renderTarget);
///or
SRPUtils.RenderToCamera(view, renderContext, camera);
 
User avatar
jsantos
Site Admin
Posts: 2905
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Scriptable render loop

02 Sep 2017, 15:05

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!

Who is online

Users browsing this forum: No registered users and 1 guest