MasterK Posted December 4, 2015 Share Posted December 4, 2015 1. these two is missing... both in serialize and parse.particle.minEmitPowerparticle.maxEmitPower 2. if i dont have an object emitter but only set a position emitter, in serialize:serializationObject.emitterId = this.emitter.id; //(it will be null).and in parse:var emitter = scene.getLastMeshByID(parsedParticleSystem.emitterId); //(null...)var particleSystem = new ParticleSystem("particles#" + emitter.name, parsedParticleSystem.capacity, scene); problem is emitter.name will be error. Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 4, 2015 Author Share Posted December 4, 2015 another bug...particleSystem.targetStopDuration = parsedParticleSystem.targetStopFrame; // should be targetStopDuration; Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 4, 2015 Share Posted December 4, 2015 Hi, Thank you for your feedback It's fixed and waiting for approval! https://github.com/BabylonJS/Babylon.js/pull/857 Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 4, 2015 Author Share Posted December 4, 2015 Hi, Thank you for your feedback It's fixed and waiting for approval! https://github.com/BabylonJS/Babylon.js/pull/857 if (this.emitter.position) {worldMatrix = this.emitter.getWorldMatrix();}else {worldMatrix = BABYLON.Matrix.Translation(this.emitter.x, this.emitter.y, this.emitter.z);} i think both serialize and parse should support emitter like this. and .name can be export and import... to instead of '"particles#" + emitter.name'. Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 4, 2015 Author Share Posted December 4, 2015 i make a first pull request in my life... don't know is it ok. Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 4, 2015 Share Posted December 4, 2015 Sounds good ! I think there is a little typo, could you please fix it ? Otherwise it's perfect ! Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 4, 2015 Author Share Posted December 4, 2015 i see your comment!! nice boy. haha. github is good thing.i fixed it. Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 4, 2015 Share Posted December 4, 2015 Yeah ! The nice boy is merging Thank ! Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 4, 2015 Author Share Posted December 4, 2015 after the merging, your changing is lost...why? the minEmitPower and maxEmitPower and targetStopFrame Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 4, 2015 Share Posted December 4, 2015 My changes are in the main repo : https://github.com/BabylonJS/Babylon.js/blob/master/src/Particles/babylon.particleSystem.ts#L507 Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 4, 2015 Author Share Posted December 4, 2015 lost in .js file...isee, u just fixed in ts... 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.