bigopon

Members
  • Content Count

    2
  • Joined

  • Last visited

About bigopon

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Wingnut @Deltakosh Thanks for the answers, the main reason I asked for that API example is to integrate Babylon into higher level templating frameworks. So far, I've examined the src and can understand what your answers are about. It's a bit of unexpected though when 2D GUI can be done in that way. In case you are curious what I'm trying to achieve: currently, I'm doing integration tests for Aurelia vNext rendering engine, where the following scenario is possible: <template> <b-scene> <b-box></b-box> .... 2d GUI: <b-textblock></b-textblock> </b-scene> <div> ... </div> </template> You can see some other examples here https://github.com/aurelia/aurelia/pulls where I've done something similar with PIXI, NativeScript, Konva, Libui, blessed etc... The next in the line are ThreeJS and BabylonJS. To do it easily, it kinds of need DOM-like API for add, insert, remove, traversal and ability to create node independently and insert lazily. Maybe I can try to find a way to work around that.
  2. From the official examples of Babylon, it seems to me that in order to add a node (Camera, light, mesh...) to a scene, you have to do it during constructor: new Class(..,.., pre-created-scene) Is there a way to do it the normal way: creating a node separately and then later add it to the scene via a method: scene.addNode(cam)