Jump to content

Search the Community

Showing results for tags 'asset manager mesh import 3d model'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

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!! New to babylon.js I have tried several different ways to load a 3D model into my browser, trying babylon and OBJ files. They always fail in the console, with no clear error message as to why. All the GET requests are fine, and the model appears on the web page and the code runs fine, but I cannot move it's position or do anything with it in the code because it has not completely loaded, failing. I cannot move it's position by using model.position.x or anything of that sort. I need to eventually be able to get its vertices.. that is my end goal, but I can't even do simple altercations. Here is the code, onTaskError always gets called despite the model being visible on the screen: var assetsManager = new BABYLON.AssetsManager(scene); var meshTask = assetsManager.addMeshTask("human", "", "models/", "human.babylon"); // You can handle success and error on a per-task basis (onSuccess, onError) meshTask.onSuccess = function (task) { task.loadedMeshes[0].position = new BABYLON.Vector3(0, 0, 0); human = task.loadedMeshes[0]; } assetsManager.onTaskError = function (task) { console.log("error while loading " + task.name); } In the console it says "error while loading " + task.name, and nothing else. I added mime types to the browser, I made sure the HTTP request went through.. I would appreciate anyone's guidance on how to import a 3d model into the browser, I don't need an entire scene, I just need 2 models/objects in total, and I want to know how to move them and manipulate their vertices.. Thanks J
×
×
  • Create New...