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

Unable to render mesh [edit for posterity: check your imports] #88

Answered by IRobot1
Polyterative asked this question in Q&A
Discussion options

You must be logged in to vote

Quick answer is that you're missing import of NgtAmbientLightModule, in generative.module.ts. Once added, the ambient light you added to the scene has the desired effect.

Because ng3 is very modular (to keep your app size small), its easy to miss an import. I recommend organizing your imports by ng3 feature so its easy to keep track of the features you are pulling in...

  imports: [
    CommonModule,

    NgtCoreModule,
    NgtStatsModule,
    NgtColorPipeModule,
    NgtFogPipeModule,

    NgtMeshModule,

    NgtObjectInputsControllerModule,

    NgtBoxGeometryModule,
    NgtConeGeometryModule,

    NgtAmbientLightModule,
    NgtHemisphereLightModule,
    NgtDirectionalLightModule,

    N…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nartc
Comment options

@IRobot1
Comment options

@Polyterative
Comment options

@Polyterative
Comment options

Answer selected by Polyterative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants