jerome

Members
  • Content count

    2,885
  • Joined

  • Last visited

  • Days Won

    63

jerome last won the day on December 17 2016

jerome had the most liked content!

6 Followers

About jerome

Contact Methods

  • Website URL
    http://jerome.bousquie.fr/BJS/demos/

Profile Information

  • Gender
    Male
  • Location
    France / Rodez

Recent Profile Visitors

2,004 profile views
  1. Really nice improvement ! congratulations
  2. online documentation : http://doc.babylonjs.com/tutorials/How_to_use_FacetData
  3. waoow
  4. yessitizzzzzzz :-)
  5. material with alpha ? http://www.babylonjs-playground.com/#1MJ5GH#1
  6. sorry, I should be more didactic :-) Well, it's a good thing to remember that : Javascript is monothreaded and the variable scope is the function in what it is created. So if some variables are created each call to a function, they have to be cleared by the garbage collector once this function is over. And the garbage collector will use the same global javascript process than your code, so some precious CPU cycles that you would prefer to keep for yourself. Thus, in general, we try to avoid to create new objects (vector3, arrays, etc) in the render loop, what is in BJS a call to the function registred with registerBeforeRender() every 16 ms (60 fps) to keep the allocated memory as constant as possible, so to keep the GC far away our little business
  7. This is really nice I think some things can be improved in your code : there are many particles and each particle process does some new allocations (so the GC will work also). Maybe could you try to replace all the ".add()", ".scale()"(subtract, etc, you see the idea) with some addToRef() or addInPlace() and scaleToRef or scaleInPlace() depending on the current case ?
  8. Really nice, but don't forget also that the SPS already implements the particle intersections if needed : http://doc.babylonjs.com/overviews/Solid_Particle_System#particle-intersections Maybe, for testing each particle against the other ones, the usage of a prune (or p-prune) algo would be more efficient...
  9. I guess Jorditantadiaz looks for this : https://threejs.org/examples/webgl_modifier_subdivision.html
  10. of course you can... just have a read at Canvas2D documentation and examples
  11. this works for any mesh, flat shaded or not
  12. mesh.position = ...?
  13. funny : the 20th particle embbeds the camera and looks at the 19th one, both falling and boucing endless ... http://www.babylonjs-playground.com/#1EAKD1