• Content count

  • Joined

  • Last visited

  1. BABYLON.Augmented Reality ...

    @Mostafa Kaouri i have cloned your code to run the example. that's very cool~~~ but i think you should hide the cube when there no marker detected.
  2. how to change render canvas?

    yes, are there any chance to change the render canvas? i asked this question because i have a very large 3d model to load into the scene. so i want to share the scene( or the loaded meshes). if i can't change the canvas i will new another engine and scene to load the 3d model. do you know how the share the meshes? it means i will do something like for loop the scene meshes: remove form old scene add to new scene. new engine.render in this way i don't need to load all the models form files (even indexdb), just use them in memory.
  3. hey guys, I want to know if there is any way to change the render canvas?
  4. thanks @Deltakosh , since i have no problem with the export tool , and i can load the normal .babylon file. i just need some demo to show me how to load the binary model to scene. use assetmanmger.addBinaryFileTask ? do you have full demo of loading binary model ?some pg links?
  5. hi all, i just want to konw how to use the binary files exported by 3dmax using Max2Babylon-0.8.0. when i export from 3dmax i got a list of binary files which one should i use.
  6. calculate camera position to fit mesh size

    @jerome so this issue is related to the aspectRatio ha, thank you so much, problem solved. for those who got the same problem, pls see this https://www.babylonjs-playground.com/#P6JAWE#2 works good on both pc and mobile. the key is to take aspectRatio into consideration.
  7. calculate camera position to fit mesh size

    @JohnK yes, the mesh is in the center, but my purpose is to see the whole mesh. on my mobile phone, you can't see the whole mesh. but pc you can see the whole mesh. so i think the position.y of camera is something related to the fov of the camera? to see the whole mesh from top, i shoud get the max size of x,z and camera.y=max/ tan(fov/2) not this but should be like this
  8. calculate camera position to fit mesh size

    @JohnK sorry to bother you again, would you pls give me some advise about this problem?
  9. i just had a problem to calculate the camera position to fit all kinds of size of meshes. this pg make the mesh in the center of the screen (you can change the ground size), but not working on mobile devices. don't know why. https://www.babylonjs-playground.com/#P6JAWE
  10. @Gijs it means we should calculate the boxinfo manually? i suppose there's something like updateBoundingbox() function for parent mesh to auto update the boundingbox.