Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Export not found in three #10

Closed
LauferAlex opened this issue Oct 18, 2021 · 4 comments
Closed

Export not found in three #10

LauferAlex opened this issue Oct 18, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LauferAlex
Copy link

Hi Team,

So we are trying to use angular-three to make some 3D visualization and we are trying to build a simple Skybox. For this purpose we are trying to import ngt-sphere-geometry and for that we are importing the ThreeSphereBufferGeometryModule and we are getting this error:

image

Code structure as follows:

app.module.ts
import {ThreeSphereBufferGeometryModule} from "@angular-three/core/geometries";

@NgModule({
  declarations: [
    AppComponent,
    ModelViewComponent
  ],
    imports: [
        ...
        ThreeSphereBufferGeometryModule,
    ],
  providers: [],
  bootstrap: [AppComponent]
})

model-view-component.html

<ngt-canvas
  [camera]='{position: [1, 1, 3], fov: 90, near: 0.1, far: 1000}'
  [scene]="{ fog: ['000000', 1, 15000] | fog }"
  (created)='$event.gl.setClearColor("gray")'
  [shadows]="true"
>
  <ngt-mesh>
    <ngt-sphere-geometry [args]="[500, 60,40]" #skybox> </ngt-sphere-geometry>
  </ngt-mesh>
  <ngt-grid-helper o3d></ngt-grid-helper>
</ngt-canvas>

We only get this error when trying to import any buffer geometry into the scene. Thanks for the help in advance!

@nartc
Copy link
Owner

nartc commented Oct 18, 2021

Can you provide THREE version? I'll sync everything back up either today or tomorrow

@LauferAlex
Copy link
Author

Thank you for your answer. The THREE version is:
"three": "^0.133.1",

@nartc
Copy link
Owner

nartc commented Oct 19, 2021

@LauferAlex thank you for providing the information. Latest three has moved some symbols from three core module to examples/* which breaks some of the imports. I'll push a fix as soon as EOD tomorrow. Thank you for understanding

@nartc nartc self-assigned this Oct 19, 2021
@nartc nartc added the bug Something isn't working label Oct 19, 2021
@nartc
Copy link
Owner

nartc commented Oct 20, 2021

@LauferAlex please check out the latest beta release. Thank. you

@nartc nartc closed this as completed Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants