• Content count

  • Joined

  • Last visited

  • Days Won


Hersir last won the day on July 21 2017

Hersir had the most liked content!

About Hersir

  • Rank
    Advanced Member
  • Birthday 08/26/1986

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
  • Location
  1. Vector was typing isse here but radius helped thanks
  2. NullEngine dispose throws error

    Hi, when I dispose null engine after unit test get error; // before unit test var engine = new NullEngine(); var scene = new Scene(engine); // after unit test is executed engine.dispose(); TypeError: Cannot read property 'deleteProgram' of undefined at NullEngine.Object.<anonymous>.Engine._deleteProgram (node_modules/babylonjs/dist/preview release/babylon.max.js:9898:26) at NullEngine.Object.<anonymous>.Engine.releaseEffects (node_modules/babylonjs/dist/preview release/babylon.max.js:11840:22) at NullEngine.Object.<anonymous>.Engine.dispose (node_modules/babylonjs/dist/preview release/babylon.max.js:11874:18) Using: 3.1.1 babylon
  3. Hi, Tried to unit test my util function that involves Vector3.Project and it returns Vector3 with infinity in it. Doing something wrong? var engine = new NullEngine(); var scene = new Scene(engine); var camera = new ArcRotateCamera("camera", 0, 0, 0, Vector3.Zero(), scene); scene.render(); var pos = Vector3.Project( new Vector(0.5, 0.5, 0.5), Matrix.Identity(), scene.getTransformMatrix(), scene.activeCamera.viewport.toGlobal( engine.getRenderWidth(), engine.getRenderHeight(), ); // pos is Vector3 { x: Infinity, y: NaN, z: -Infinity } Using: 3.1.1 babylon
  4. Hi, is it by design that NullEngine.getHardwareScalingLevel returns undefined? var engine = new NullEngine(); var scene = new Scene(engine); engine.getHardwareScalingLevel() //returns undefined Using: 3.1.1 babylon
  5. Hi, Is it possible to control image format export for 3d max materials (force jpg, png for example) somehow? As for physics material (pbr) it produces png right now for me even without any transparency. Thank you in advance.
  6. Hi, would it be possible to add light map in 3d max somehow as right now need to do it manually by getting material ids an applying to them in code that gets tedious wiht each change in scene Thank you in advance.

    Hi its type of object property being animated
  8. Get camera view

    for now did this const leftTop = this.getScene().pick(0, 0, undefined, false, cam).pickedPoint; const leftBottom = this.getScene().pick(0, viewport.height, undefined, false, cam).pickedPoint; const rightTop = this.getScene().pick(viewport.width, 0, undefined, false, cam).pickedPoint; const rightBottom = this.getScene().pick(viewport.width, 0, undefined, false, cam).pickedPoint;
  9. Get camera view

    @Wingnut Thanks will check that, tried to go a bit different way but also stuck there const v = Vector3.Unproject( new Vector3(0 ,0 , 0), viewport.width, viewport.height, Matrix.Identity(), cam.getViewMatrix(true), cam.getProjectionMatrix(true), ); Tried to convert 2d 0,0 point to 3d in camera to get left corner but it didn't worked out well, just got centre point
  10. Get camera view

    Hi, have a question, is it possible to get coordinates in 3d space of arcRotatinCamera (width, height and leftTop corner vector) of visible area ? I need to zoom on area and than move out all not needed objects out of camera view and align mesh to topRight corner of visible area
  11. Hi, PBRMetallicRoughnessMaterial is extending PBRBaseSimpleMaterial that is extending PBRBaseMaterial. Inside PBRBaseMaterial there is protected property for lightmapTexture but its not exposed inside PBRBaseSimpleMaterial so lightmapTexture can not be used with PBRMetallicRoughnessMaterial. Is that by the design that metallic pbr doesn't have lightmapTexture ? as it is exposed only for PBRMaterial right now. Thanks
  12. Any GLSL shader in Babylonjs?

    I got error on your playground [Warning] [blocked] The page at https://www.babylonjs-playground.com/#NCY1Q#1 was not allowed to run insecure content from http://cdn.rawgit.com/RNasimiAsl/Extensions/master/ShaderBuilder/Babylonx.ShaderBuilder.js.