Jump to content

Particles and Serialize


Recommended Posts

Hello, fathers and childs of BABYLON.JS :)


Here http://www.babylonjs-playground.com/#1OALWX  interesting fact :)

ParticleSystem has attribut name (in this case "particlesQ") but this name not save in serializer (see console output).


Later (in my script), when i load scene, name set automaticaly  "particles#"+name of emmiter  (particles#Plane, particles#Qube).  

Bug or features? I think small evil bug :)

p. s.:

in  19985 (babylon.2.2.max.js):
var particleSystem = new BABYLON.ParticleSystem("particles#" + emitter.name, parsedParticleSystem.capacity, scene);





We do not banned - create scene, camera, light, create particles system, but not set emitter and have error.  In SceneSerializer?.


I think here is two ways:

Required emitter in ParticleSystem constructor (tough), or let SceneSerializer save that ParticleSystem without missing attributies as is (prefer).
If not, please, direct me in right way :)

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...