• Content Count

  • Joined

  • Last visited

About lhx880619

  • Rank
    Advanced Member

Recent Profile Visitors

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

  1. why the mesh is alway rotating when i use fixed rotation value? pg http://playground.babylonjs.com/#J0B4FR scene.registerBeforeRender(function () { if(plane) plane.rotation = new BABYLON.Vector3(0,Math.PI/10,0) });
  2. lhx880619

    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.
  3. lhx880619

    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.
  4. hey guys, I want to know if there is any way to change the render canvas?
  5. lhx880619

    highlight layer problem

    @Dad72 sorry,what did you changed? your link is almost the same as mine? nothing changed?
  6. lhx880619

    highlight layer problem

    hi all, i just want to know how to adjust the parms to show pretty highlight, mine looks bad(with kind of shandows or something there) playground link: http://www.babylonjs-playground.com/#MKI61V#2
  7. how all, i have a path data of Vector3[] , and i want to show dashed line of this path by babylon.gui, are there any suggestions? (gui line end point to tracking the 3d positions) what i am looking for is a path navgation like the following:
  8. 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?
  9. 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.
  10. lhx880619

    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.
  11. lhx880619

    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
  12. lhx880619

    calculate camera position to fit mesh size

    @JohnK sorry to bother you again, would you pls give me some advise about this problem?
  13. 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