Page 1 of 1
Render once
Posted: 13 Mar 2018, 00:36
by elecman
With the latest Unity version, what is the best way to render a standalone object (not fullsceen) only when something changes? It would be nice if the render loop can be paused without any hacks.
Re: Render once
Posted: 13 Mar 2018, 20:19
by jsantos
There is no easy way right now without modifying the scripts. So if this is not critical for you, please, wait for the next version where we will add a flag to activate that behavior. We are working in the new Render to Texture pipeline but unfortunately this feature didn't make it into the final 2.1, that's the reason we didn't change anything regarding non-camera rendering.
Sorry for the inconvenience!
Re: Render once
Posted: 14 Mar 2018, 00:53
by elecman
No problem, will wait until the next version.
Can a RenderOnce() function be implemented in addition to a flag?
Re: Render once
Posted: 14 Mar 2018, 13:25
by jsantos
Can a RenderOnce() function be implemented in addition to a flag?
We already offer a low-level API for doing manual renders. You can find it in
NoesisRenderer.cs. It is the API being used by
NoesisView.
By the way, I saw your
new post about your work. It is truly awesome, do you have a video of a cabin with animated interfaces?
Re: Render once
Posted: 15 Mar 2018, 08:26
by elecman
Thanks, I will have a look at the API in that file. Is that in the documentation somewhere?
I don't have the animations of the cabin or other instruments ready yet. There is a lot of complex logic behind that (systems, have to be powered, computer not failed, CB not popped, etc) which has to be simulated as well. Will take some time. Maybe I can make a simple demo though.
Re: Render once
Posted: 15 Mar 2018, 14:06
by jsantos
Thanks, I will have a look at the API in that file. Is that in the documentation somewhere?
That's a very low-level API. The only documentation available is the code itself.
I don't have the animations of the cabin or other instruments ready yet. There is a lot of complex logic behind that (systems, have to be powered, computer not failed, CB not popped, etc) which has to be simulated as well. Will take some time. Maybe I can make a simple demo though.
Cool! Take your time. Thanks