Jump to content

Camera as in a CAD System


Michuspo
 Share

Recommended Posts

I don't know what kind of geometries you mean.  When I export to BabylonJS I use:
Forward: -Z forward
Up: Y Up.

If you are using CSG or your own geometries then you could try to make the mental switch to left handed?  Otherwise maybe an example from you... some matrix operations have right-handed options.  Depends how you want to modify the geometry  - you might get away with a rotation.

Link to comment
Share on other sites

Simplest way 

var myfunction = function(x, y, z) {

    var myvector = BABYLON.Vector3(x, z, y);
    //do things
}

You have to do a bit of thinking to write the code but your users will see a Y up system.

Link to comment
Share on other sites

Thanks for your answers.

Basically the problem is CAD industry uses Z up, it means that all models, and all devices like 3d scanners.

597ed3ab0f802_ScreenShot2017-07-31at08_51_52.thumb.png.3c11b91a670d5ab2f10290fc1bec33a5.png

Maybe, I can apply a transformation, but for example, if I need to analyze a coordenate, section, ... I need to switch back the results too. For that reason, I think is easier to use Z+ positive.

Thanks,

Link to comment
Share on other sites

12 hours ago, JohnK said:

Simplest way 


var myfunction = function(x, y, z) {

    var myvector = BABYLON.Vector3(x, z, y);
    //do things
}

You have to do a bit of thinking to write the code but your users will see a Y up system.

That's what I'm doing.

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