xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
738 stars 291 forks source link

Can this sdk be used for ground plane? #373

Closed marcusx2 closed 4 years ago

marcusx2 commented 4 years ago

Can I use this sdk to place objects on the ground, move, rotate, and scale them? See vuforia's ground plane.

Amoki commented 4 years ago

You can, but it may not be the best. There are no animations nor shadows. xeokit's strength is to be able to show hundreds of thousand objects in the same scene which you probably don't need in your use case.

marcusx2 commented 4 years ago

I need to place the object on the ground, then navigate inside it. I see I can use this library to navigate inside 3D objects. Is there an example of placing an object on the ground with it? I don't need animations or shadows. Just placement(rotate, scale, and move)

Amoki commented 4 years ago

What do you mean by "place the object on the ground"? You would need to define the "ground" yourself, there is no such thing in xeokit. As long as you know the coordinate to place the object, you're good!

xeolabs commented 4 years ago

The ImagePlane component in v1.3.6 may be what you need - example: https://xeokit.github.io/xeokit-sdk/examples/#ImagePlane_groundPlane