Search the Community

Showing results for tags 'babyalon'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello everyone ! This is my first post here and i'm not used to so apologies if I do some begginers mistakes. I look for it in internet but nothing about this error : TypeError: undefined is not an object (evaluating 's._addPendingData') I'm just trying to import a mesh into my scene. This is my code : var Ground = function(x, z, game, scene) { // Call the super class BABYLON.Mesh GameObject.call(this, "ground", game); console.log("Adding the ground"); BABYLON.SceneLoader.ImportMesh("", "assets/", "scene.babylon", scene, function (newMeshes, particleSystems) { this = newMeshes[0]; this.isVisible = true; this.parent = this; this.shadows.getShadowMap().renderList.push(ground); this.position = new BABYLON.Vector3(x, 0.75, z); this.receiveShadows = true; }); console.log("Ground added"); //console.log("number of meshes : " + game.assets['ground'].meshes.length); //var ground = game.assets['ground'].meshes; }; // Our object is a GameObject Ground.prototype = Object.create(GameObject.prototype); // And its constructor is the Ground function described above. Ground.prototype.constructor = Ground; and my file architecture : Main Folder -- Ground -- assets -- scene/babylon Does someone have information for me ? Thank you in advance, enjoy your day UPDATE : I've made some changes to my code and i put all my files on a server (cloud foundry, so you guys can see my code : http://datageneration.apps.eu01.cf.canopy-cloud.com/) var Ground = function(x, z, game, scene) { // Call the super class BABYLON.Mesh GameObject.call(this, "ground", game); console.log("Adding the ground"); BABYLON.SceneLoader.ImportMesh("", "assets/", "scene.babylon", scene, function (newMeshes, particleSystems) { this.meshes = newMeshes[0]; this.meshes.isVisible = true; this.meshes.parent = this; this.meshes.shadows.getShadowMap().renderList.push(ground); this.meshes.position = new BABYLON.Vector3(x, 0.75, z); this.meshes.receiveShadows = true; }); console.log("Ground added"); //console.log("number of meshes : " + game.assets['ground'].meshes.length); //var ground = game.assets['ground'].meshes; }; // Our object is a GameObject Ground.prototype = Object.create(GameObject.prototype); // And its constructor is the Ground function described above. Ground.prototype.constructor = Ground; The error is the same but without the 's.' : Uncaught TypeError: Cannot read property '_addPendingData' of undefined Thank you for you consideration EDIT : If you need it this is the complet file system : Block.js 636B Game.js 3.5K GameObject.js 356B Ground.js 927B Level.js 1.2K Player.js 4.2K assets/ - index.html 704B js/ - levels.js 771B old/ - cd assets/ key.babylon 47.7K key.babylon.manifest 78B scene.babylon 163.5K scene.babylon.manifest 79B skybox/ - cd ../js Oimo.js 302.5K babylon.2.3.js 948.4K cannon.js 384.2K hand-1.3.7.js 29.6K