zied sellami Posted April 6, 2016 Share Posted April 6, 2016 Hi everyone I'm trying to change the same meshes values to a new one. The problem that the old instance is still rendered in the scene over the new one. Is there is a way to clean the canvas or the sean or to clean the old meshes state ? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 6, 2016 Share Posted April 6, 2016 try mesh.visibility i think Quote Link to comment Share on other sites More sharing options...
JohnK Posted April 6, 2016 Share Posted April 6, 2016 Might be me @zied sellami but I do not understand what mesh values you want to change or why? If you could produce a playground example and explain what you want to happen then maybe I could help. Quote Link to comment Share on other sites More sharing options...
zied sellami Posted April 6, 2016 Author Share Posted April 6, 2016 @JohnK , @NasimiAsl I'm trying to generate forms so for that i manipulate all the Matrix (positions,normal,indice) i used my_mesh.dispose; my_mesh=null ; but after a few time using the application it comes slow , so i need a method that it init my sean to a blank step without load memory for the meshes that are disposed. @JohnK I'm sorry but i cannot put it in the playground or show any exemple because it is confidential. i wish that you understand that Quote Link to comment Share on other sites More sharing options...
JohnK Posted April 6, 2016 Share Posted April 6, 2016 This topic has come up before Sounds like a garbage collection issue. Do you still have references to you mesh? If so mesh will not be garbage collected. This might be worth a read http://stackoverflow.com/questions/742623/deleting-objects-in-javascript Are there other ways of approaching what you need? Could you update positions, normals etc in existing mesh rather than create a new one? zied sellami 1 Quote Link to comment Share on other sites More sharing options...
zied sellami Posted April 7, 2016 Author Share Posted April 7, 2016 Thank you it was very useful , it is exactly what i need. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.