menu

πŸ‘©β€πŸš€ <model-viewer>

Archive of discussions about <model-viewer>, now replaced by https://github.com/google/model-viewer/discussions

Channels
Team

3D model scale

June 5, 2020 at 5:37am
Good team! I would like to ask a question, assuming I have a 3D model of a bed and the actual measurements of that bed are 1M x 1.6M. Is it possible to set the same size in the AR model? since my 3D object during the augmented reality scene appears to me very very large and I have to scale manually, I have tried "ar-scale" but I think something I am not doing well, I would like to scale in% just so that more appear guys my models, thank you very much!

June 5, 2020 at 5:45am
you need to scale your 3D model accordingly in your 3D software of choice.
for example you can easily change the scale in blender by clicking on the model and adjusting the scale parameters accordingly. after that make sure to apply all transforms and export.
  • reply
  • like
You are very kind in your answer, ok, I understand that in my tool I can make that adjustment, I thought that from ModelViewer it was perhaps possible to adjust the scale in%, then, and forgive my ignorance, but the Attribute "ar-scale" so that would it work? Thanks a lot!
  • reply
  • like

June 6, 2020 at 12:08am
ar-scale only controls whether you allow your users to rescale the model with pinch (you probably prefer fixed scale for furniture). glTF specifies that models must be authored in meters, but many modeling programs don't adhere well to this requirement. has the correct recommendation.
  • reply
  • like

November 19, 2020 at 1:11pm
It would be very useful to have a way to link the model measurements to the physical surroundings shown in AR. This way, model-viever could be used for true-to-scale immersive experiences within physical surroundings, like previewing future buildings at the plot, or planned interior designs makeovers. This would be of great interest to the AEC sector.
  • reply
  • like
(mmlahti) I'm not quite sure what you mean. glTF models are in units of physical meters (according to the spec), which is how we display them in AR to make them at real world scale. If your models are not showing up at the proper scale, it likely means they were authored in the wrong units.
  • reply
  • like

November 19, 2020 at 11:17pm
OK, so the measurements of real world are somehow captured and known? Then that enables the accurately scaled modeled content on top of reality? If so, fantastic. Now if we could also fix the positioning of the modeled content with marker (as proposed here: https://github.com/google/model-viewer/issues/184), this solution could really replace super expensive XR glasses such as Varjo XR-1.
Edited
  • reply
  • like

November 20, 2020 at 5:42pm
Yes, ARCore/ARKit use the accelerometers to determine the true scale of what the camera is seeing (part of why it only works when you move your phone). The WebXR group is discussing image tracking, so hopefully we'll have something here before too long.
like-fill
1
  • reply
  • like