• Content count

  • Joined

  • Last visited

  1. Rook

    Online game optimization

    @Baker Xiao Can you do some sort of breakdown of this real-world example that you're doing with SPS? Perhaps just some genericized psuedo-code to learn from? There is a lot of expertise that can be great for learning how the intricate bits of Babylon work in production situations.
  2. Rook

    Marking questions as solved

    Found it after some poking deeper. Nifty.
  3. Rook

    Circle curve from beziers?

    @adam - You are both awesome (solution 1) and a showoff (solution 2). But, thank you on both counts. I needed a smile this afternoon.
  4. What is the recommended way to create a circle 'line'? I started to post this the other day, right when I tripped over Curve3 and Cubic/Quadratic Beziers, so have been toying with the math of those. When I try to build a circle out of 4 Quads, I get a very strange join. See: How best to join these curves together to get a simple circle and/or ellipse?
  5. Rook

    [Solved] GUI error

    I will investigate Yarn, thanks. I have seen it mentioned in several tutorials, just haven't delved into it.
  6. Rook

    [Solved] GUI error

    There is something funky going on with my local version of 'npm', I think. I was working to show something to Deltakosh on another issue, and when I deleted node_modules and rebuilt with 'npm install', then everything seemed to start working, so I am not sure if dependencies were horked up somehow or not. But the rebuild worked when I tried it again on this issue! I am adding this to my troubleshooting steps, as I've learned that it is not entirely reliable to just 'npm remove' and 'npm install' packages back to back. I was doing this in troubleshooting a prior issue. I am new to Node so forgive this firedrill.
  7. I am getting the following error when trying to explore the GUI extension. I think that I might be cross-pollinating between the new modular approach that just came out, and maybe old instructions for pre-alpha docs? From (I am showing my requires at the top, and line 61 from map.js): var BABYLON = require('babylonjs') var GUI = require('babylonjs-gui') ... var gui = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI('UI') // var gui = GUI.AdvancedDynamicTexture.CreateFullscreenUI('UI') Uncaught TypeError: Cannot read property 'add' of undefined at new r (/home/rook/Documents/Projects/babylon-testing/node_modules/babylonjs-gui/babylon.gui.mi…:1) at Function.r.CreateFullscreenUI (/home/rook/Documents/Projects/babylon-testing/node_modules/babylonjs-gui/babylon.gui.mi…:1) at createScene (map.js:61) at map.js:68 I have tried both using GUI.AdvancedDynamicTexture.CreateFullscreenUI() and BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI() as you can see from the commented-out line. Both error out. What am I doing wrong?
  8. Rook

    Unable to import babylon

    All, Can we expand the Examples in the doc page for 'npm_support' to include require() structures? I am building my app inside of Electron, which does not support ES6 import statements without Babel and etc. I'd like to avoid that, if at all possible, and ensure that the require()s will work just fine.
  9. I cannot choose a version number in the Playground, only 'Stable' vs 'Latest'. For me, when I 'npm remove babylonjs' and then 'npm install --save babylonjs@3.0.7' and then the code worked, it seems like a version bug in the Alpha. I could be wrong?
  10. Rolled back from version 3.1.0-alpha2 to 3.0.7 and the problem goes away. This seems to be a bug in the latest version.
  11. I have a very basic setup, and it works in a Playground, but throws this error when I am running it in an Electron app (still very basic). I have babylonjs@3.1.0-alpha2 saved as an npm dependency. I have a Module that contains a class. When the last line is commented out, this runs just fine, no errors. When material assignment is un-commented, it throws the following error in the console of Chrome: I think that this is very basic and simple code, and cannot figure out why this is throwing a Uncaught TypeError.