Jump to content

Scene observables firing order


Theodox
 Share

Recommended Posts

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

- 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

Link to comment
Share on other sites

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.  :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...