shawn0326 / zen-3d

JavaScript 3D library.
MIT License
196 stars 24 forks source link

clearing the scene of existing meshes #1

Closed adamredwoods closed 5 years ago

adamredwoods commented 6 years ago

I really enjoy how light weight this library is, but I cannot find a way to clear the scene. If I apply a new scene to the renderer, the old objects are not removed. I have also tried removing objects from a group container, but after the old objects are removed, new ones do not show up.

Could be a bug or could be doing something wrong. Any suggestions?

shawn0326 commented 6 years ago

@adamredwoods

In general, you can use scene.remove() to remove an Object3D from scene.

Can you show me your code?