• Content Count

  • Joined

  • Last visited

About kopacabana73

  • Rank

Recent Profile Visitors

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

  1. Thanks aFalcon ! I'm gonna experiment and test your suggestions. I send you my results soon.
  2. Thanks aFalcon If I understand, the matrix returns by SolvePnp must be applied to arParentMatrix ! But how do I initialize the camera (fov, near plane, far plane, position, rotation, etc) ? I can retrieve the following camera properties : width, height, fov. Which orientation should I apply to the camera ? Is it the 3D object or the camera that needs to be handled?
  3. Hello, I'm new on this forum. Thanks for BabylonJS, it's really great! Actually, I'm working on a solution like AR.js but I detect images, not markers. I use a lot of algorithms for tracking. After few days, it's possible to track an image. I use SolvePnP to determine 3D environment . This algorithm returns 2 vector3, one for the position, one for the rotation. But i've got nothing for scaling. I have also a camera matrix. I'm not sure all values are good, especially for Camera Matrix. Now, I want to use BabylonJS to map a simple plane on top of detected image but I'm completely lost. I've got a first question : which component must be manipulate ? Camera or plane ? If it's plane, how to define camera properties (fov, etc) ? If it's camera, I think plane must be at 0, 0, 0, but which size (size of trigger or just 1 unit) ? How proceed with matrix ? Only on camera or on plane or on plane and camera ? I inspect AR.js and Babylon-ar.js but I don't understand how to apply my results matrix on it. I've read many articles but nothing help... I NEED HELP to solve this (little) problem !!! Could anyone help me ??? Thanks
  4. Hello, For a test, I download a zip file. I extract files with JSZip. All files are OBJ files. I use babylon.objFileLoader for OBJ files. After extraction, I try to use BABYLON.SceneLoader.ImportMesh with rawData like this : var rawData = "data:" + contentOfFiles; BABYLON.SceneLoader.ImportMesh("", "model.obj", rawData, scene, function(){ console.log("Success"); }, function(){ console.log("PROGRESS"); }); But that's not work :((( I receive this message : importMesh of undefined from undefined version: undefined, exporter version: undefined importMesh has failed JSON parse Someone have an idea ? How can I import mu obj files ? Thanks Loïc