Defines the <lume-3ds-model>
element, short for <lume-element3d has="3ds-model">
, for loading 3D models in the 3DS format (.3ds
files).
See TdsModelBehavior
for attributes/properties available on this element.
HTML Example:
<lume-scene webgl>
<lume-3ds-model id="myModel" src="path/to/model.3ds"></lume-3ds-model>
</lume-scene>
<script>
myModel.on('MODEL_LOAD', () => console.log('loaded'))
</script>
JavaScript Example:
const scene = new Scene
scene.webgl = true
document.body.append(scene)
const model = new TdsModel
model.src = 'path/to/model.3ds'
model.on('MODEL_LOAD', () => console.log('loaded'))
scene.add(model)