angular-threejs / angular-three

Angular Renderer for THREE.js
MIT License
201 stars 27 forks source link

Can't use LineMaterial and TextGeometry #17

Closed comfortme closed 1 month ago

comfortme commented 1 year ago

Hi, It seems I can't get any material or geometry working from 'three/examples/jsm/...' directory. Please see an example of it in below stackblitz. I can't extend the components in this example. Even though I can extend them in local environment, components are not rendered.

https://stackblitz.com/edit/angular-three-demo-template-fqr9os?file=src%2Fapp%2Fscene.component.ts

nartc commented 1 month ago

this should work in v2 with adding .js to the import path.

import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js`