Theodox Posted May 14, 2018 Share Posted May 14, 2018 What's the order in which the various observables on a `Scene` fire during a given run of the render loop? Is it deterministic? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 14, 2018 Share Posted May 14, 2018 it is deterministic - onBeforeAnimationsObservable - onAfterAnimationsObservable - onBeforePhysicsObservable - onAfterPhysicsObservable - onBeforeRenderObservable - onBeforeRenderTargetsRenderObservable - onAfterRenderTargetsRenderObservable - onBeforeCameraRenderObservable - onBeforeActiveMeshesEvaluationObservable - onAfterActiveMeshesEvaluationObservable - onBeforeParticlesRenderingObservable - onAfterParticlesRenderingObservable - onBeforeRenderTargetsRenderObservable - onAfterRenderTargetsRenderObservable - onBeforeDrawPhaseObservable - onAfterDrawPhaseObservable - onAfterCameraRenderObservable - onAfterRenderObservable I would really appreciate if someone would be kind enough to update the doc with this info Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 15, 2018 Share Posted May 15, 2018 Cool. onReady, onDataLoaded, onBeforeStep, onAfterStep, onDispose ? Just curious - pondering why not. Are they unloved? (sniff) It still doesn't add-up. In-doc search for 'new Observable<Scene>' in https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.scene.ts ... reports 21 hits. @Deltakosh list is 18. I added 5. That's 23. What the heck? I think I have a bent abacus (I'm screwing-up somehow). Ya just can't 'count-on' ANYTHING, these days. It just doesn't add-up. heh Quote Link to comment Share on other sites More sharing options...
Magilla Posted May 15, 2018 Share Posted May 15, 2018 onBefore and onAfter? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2018 Share Posted May 15, 2018 - onAfterStep and onBeforeStep are a special option when dealing with deterministic step. So I preferred just ignoring it - onDispose is not in the renderloop per se but just called when the scene is disposed - OnReady is not in the renderloop per se but just called when the scene is loaded - Same for onDataLoaded Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 20, 2018 Share Posted May 20, 2018 Oh, by the way... Hi Theodox... welcome to the forum! Good to have ya! List added... https://github.com/BabylonJS/Documentation/pull/1019 Needs approval/adjusting, then docs build-into-html, eventually. Observ-ables, animat-ables, vari-ables, there sure are lots of 'ables' around this place. How about a new system for doing matrix transformations? Transformers and transform-ables! errr... maybe not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.