Jump to content

SET position of OBJ object


juanmajr93
 Share

Recommended Posts

@juanmajr

 var y = ground.getHeightAtCoordinates(x, z); // Getting height from ground object

http://www.babylonjs.com/Demos/INSTANCES/

 

@Deltakosh Chrome 57... Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
 

 

Link to comment
Share on other sites

@Nabroski yes I have used this method but I need to change the height of all points of mesh to adapt over the ground, it is like set a heightmap to mesh instead of terrain. It is similiar if you have an unique mesh of all trees of your example and later you have to adjust them over the ground. To understand me better please visit my scene. http://217.217.131.1:8081/

Link to comment
Share on other sites

@juanmajr93

I guess you mean than not all your meshes are at same height, i think, theirs is somewhere a 'bug' in your code. It should work. i think, maybe make a callballfunction, if every building has loaded then apply new height

Try to simply as much as possible. Your Site need damn long to load, maybe you can improve this too.
Sorry i cant help you any further, this needs time for debug. 
 

heighmap-y.JPG

Link to comment
Share on other sites

@Nabroski mesh buildings have this height because I set them by this way. I am only interested in gangway mesh that I would like to set at the same level of ground. Now I can only adjust origin point of this mesh but not all vertex which are in the base of it. Maybe I think that the solution is to edit this mesh...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...