Hersir

Members
  • Content Count

    329
  • Joined

  • Last visited

  • Days Won

    1

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
    http://hersir88.github.io
  • Twitter
    hansagames

Profile Information

  • Gender
    Male
  • Location
    Riga

Recent Profile Visitors

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

  1. But as engine is not listening to them my script gets stuck for ever, as its waiting for up event, for now added `pointercancel` event on app side, and just triggering onPointerUp from scene to force cancel as up, till now works well but in long term could get in some issues where valid cancel event will be executed as up
  2. @Sebavan Hi, I have pep.js as pointer events are working, just on some andorid devices instead of PointerUp, PointerCancel event is called especially if taps are done very quickly
  3. `this._pointerCaptures` have these pointer ids as true
  4. Hi, have encountered such issue, I am listening on pointer events observable: scene.onPointerObservable.add(this.onPointer); this method listens to down, up, move events: function onPointer(info: PointerInfo) { if (info.type === PointerEventTypes.POINTERMOVE) { this.handleMove(info.event); } else if (info.type === PointerEventTypes.POINTERUP) { this.handleUp(info.event); } else if (info.type === PointerEventTypes.POINTERDOWN) { this.handleDown(info.event); } } all woks well till on some android devices PointerUp is not triggered, after some investigation found out that event was canceled so PointerCancel was triggered instead of PointerUp, but after digging in the code saw that engine doesn't handle them at all. Anyone had issues with pointer events being canceled ? maybe some solutions ? As it's not trivial to add cancel event handling as on some devices both Cancel and Up is handled at the same time. Thank you for any info.
  5. Hersir

    Debug layer is not opening

    Ok now can confirm it was webpack version missmatch now after upgrade to webpack 4 it works
  6. Hi, I use TransformNode as parent for my meshes and would like to add all children to ShadowGenerator, like this `addShadowCaster(node, true)` but it accepts just AbstractMesh as input there, what about changing type to TransformNode ? Like this: public addShadowCaster(mesh: TransformNode, includeDescendants = true): ShadowGenerator { if (!this._shadowMap) { return this; } if (!this._shadowMap.renderList) { this._shadowMap.renderList = []; } // Need to check if is real mesh if (mesh instanceof AbstractMesh) { this._shadowMap.renderList.push(mesh); } if (includeDescendants) { this._shadowMap.renderList.push(...mesh.getChildMeshes()); } return this; } for `removeShadowCaster` similar public removeShadowCaster(mesh: TransformNode, includeDescendants = true): ShadowGenerator { if (!this._shadowMap || !this._shadowMap.renderList) { return this; } // check if real mesh if (mesh instanceof AbstractMesh) { var index = this._shadowMap.renderList.indexOf(mesh); if (index !== -1) { this._shadowMap.renderList.splice(index, 1); } } if (includeDescendants) { // use getChildMeshes instead of getChildren to support nested TransformNodes for (var child of mesh.getChildMeshes(true)) { this.removeShadowCaster(<any>child); } } return this; } Any objections on this ? I haven't tested / profiled change impact so its just an idea now Would like to hear feedback, as maybe I am missing something here
  7. Hersir

    mesh rendered black on android models

    @waverider Would be nice to get GPU, OS, browser versions, but this is android gpu `features` Try this: force webgl 1 if webgl 2 is used remove shadows if used change light types, try to use just 1 type and 1 light to see if that cuases it try different materials remove env map if used I have worked with such issues a lot, and most of time found comp that causes this, but at the end its usually weak, bugy gpu driver or OS, as sometimes same device works well with minor os downgrade / upgrade. I usually try to reproduce bug in playground with min setup to have better understanding what causes it.
  8. Hersir

    Debug layer is not opening

    @RaananW sorry wrong wording from my side, I meant that import "babylonjs-gui"; import "babylonjs-loaders"; import "babylonjs-serializers"; dont have any errors if included, but import "babylonjs-inspector"; still have bind error as before I also tried rc4 but have same issue, and `babylonjs-serializers` is still missing if inspector is installed from npm. I would bet on webpack version differences ,as cold be that dependency bundling was changed from wp3 to wp4.
  9. Hersir

    Debug layer is not opening

    @RaananW You mean like this ? import "babylonjs-gui"; import "babylonjs-loaders"; import "babylonjs-serializers"; if yes than worked fine, launched without error
  10. Hersir

    Debug layer is not opening

    Hi @RaananW so all in order System: macOS High Sierra 10.13.6 Browser: Chrome 69.0.3497.100, Safari 12.0, Firefox 62.0 Webpack: 3.12.0 Babylonjs: 3.3.0.-rc.1 Inspector: 3.3.0.-rc.1 Tried: import { Inspector } from "babylonjs-inspector"; new Inspector´╗┐(this._scene, false, 0, null´╗┐);´╗┐ and import "babylonjs-inspector"; scene.debugLayer.show(); both produce same bind error at start of load, dont even get to new Inspector or show: Uncaught TypeError: Cannot read property 'bind' of undefined at universalModuleDefinition:1 at universalModuleDefinition:1 at webpackJsonp.2525 (universalModuleDefinition:1) at Object.2525 (universalModuleDefinition:1) at __webpack_require__ (bootstrap 5313bedd0a39528998e1:54) at __webpack_require__ (bootstrap 5313bedd0a39528998e1:54) at __webpack_require__ (bootstrap 5313bedd0a39528998e1:54) Without import, just using show: File https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js is loaded successfully, but global INSPECTOR is still undefined when it tries to show, because of bind error before. Can give more info if needed
  11. Hersir

    Debug layer is not opening

    Tried to use npm version of inspector but there is same error about bind. Off topic npm inspector package is missing dependencies, (babylonjs-gui, babylonjs-loaders, babylonjs-serializers), would be nice to add it in package.json of inspector so they are auto installed, as it doesn't work without them.
  12. Hersir

    Debug layer is not opening

    Looks like inspector script is loaded, but global INSPECTOR is still undefined, could be related to fact that I use, webpack 3, but inspector is bundled with webpack 4
  13. Hersir

    Debug layer is not opening

    Hi, tried to open inspector by: this.getScene().debugLayer.show(); but that produces following errors: bootstrap:129 Uncaught TypeError: Cannot read property 'bind' of undefined at bootstrap:129 at bootstrap:137 at universalModuleDefinition:9 at universalModuleDefinition:1 Uncaught TypeError: Cannot read property 'Inspector' of undefined at t.webpackJsonp.1921.t._createInspector (babylon.js:1) at HTMLScriptElement.n.onload (babylon.js:1) I am using babylonjs rc-1, and webpack for packing. I am missing some new configs ?, as it used to work 2-3 versions ago could be related to this ? Thank you