There are 3 different models that appear on the a frame page, but all have the same size.
(框架页面上显示3种不同的型号,但是尺寸都相同。)
How to register that different model had different size?(如何注册具有不同尺寸的不同型号?)
AFRAME.registerComponent('model-obj' Forest.attrebute( scale 10 20 10)
<a-obj-model id="obj_model" position="-55 0 -40" rotation="0 90 0" scale="5 10 5" src="#{{ object.terrain}}" mtl="#{{ object.terrain }}-mtl"></a-obj-model> <a-obj-model class="obj_model" id="city-scape" position="-5 0 -40" rotation="0 90 0" scale="5 10 5" src="#{{ object.terrain}}" mtl="#{{ object.terrain }}-mtl"></a-obj-model> <a-obj-model class="obj_model" id="city-scape-right" position="50 0 -40" rotation="0 90 0" src="#{{ object.terrain}}" mtl="#{{ object.terrain }}-mtl"></a-obj-model>
AFRAME.registerComponent('model-obj' Forest.attrebute( scale 10 20 10)
ask by NikPo translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…