• Content Count

  • Joined

  • Last visited

  • Days Won


gwenael last won the day on June 4 2014

gwenael had the most liked content!

About gwenael

  • Rank
    Advanced Member

Profile Information

  • Gender

Recent Profile Visitors

2110 profile views
  1. Glad you found a solution. Still, it may be broken on Windows too. I'll check that.
  2. Hi guys, @davrous, thanks for your link. @davrous or others: - Do application/babylon and application/babylonmeshdata are deposed as mime types? ( - If I use application/json instead (to declare .babylon files and .babylonmeshdata), will IIS gzip the files without I have to do so? Like I think it does for css, javascript... Thanks
  3. For physics engine you may want to be careful with gravity value since it must be coherent with your unit. 9.81 is correct if your unit is meter otherwise you have to convert 9.81 to the right value. If 1 unit = 1 cm then gravity should be set to 981.
  4. Hi binyan, Sorry I've been off the forum for a while. I'm trying to catch up but it can take me some times. Did you figure out how to do what you wanted? Sorry I was not totally clear. First, this may help you: All points (vertices) of a mesh have positions relative to mesh center. For example, for a mesh which is a cube, one of its point may be at (1,1,1) if the mesh center is the center of the cube (intersection of its diagonales) and another point would be at (-1,-1,-1). The side of the cube would be 2 units. The positions of the points of the mesh are relative to the center position of the mesh. If the center of the cube is positioned at the center of the world (0,0,0) then the first point (I mentioned before) of the cube is positioned at (1,1,1) BUT if the center of the cube is positioned at (5,5,5) in the world then the first point is positioned at (6,6,6) in the world but still at (1,1,1) relatively to the center of its mesh. (5,5,5) is expressed in World space whereas (1,1,1) is expressed in Local space (relative to mesh center). mesh.position, mesh.rotation and mesh.scaling set the pivot of the mesh relatively to the center of the parent mesh (or center of the world if the mesh doesn't have a parent). The mesh rotates relatively to its pivot. pivot matrix sets the center of the mesh relatively to the pivot of the mesh A point (1,1,1) expressed in local space has a position in parent space by combining the matrix given by mesh.position, mesh.rotation and mesh.scaling and the pivot matrix. Like for is position expressed in world space, its position expressed in parent space may be different than its position expressed in local space BUT on your screen it's still at the same place. It's something similar to: you are sitten between two people, you are at the right of the first one (your position expressed in his/her space) and the left of the second one (your position expressed in his/her space) but still you didn't move By doing mesh.position.z = -0.5 you set the position of its pivot at z = -0.5 relatively to its parent (the world here) same thing with mesh.position.x = 0 but if you don't specify a pivot matrix then by default the center of the mesh is on the pivot (on your screen your mesh has moved) If you specify a pivot matrix then you set the center of your mesh relatively to its pivot and now you can rotate around the axis of the pivot space instead of those of the local space
  5. If I have understood you well, you can achieve the same result with the minified version in Chrome Javascript console by selecting your file in the Sources tab and by clicking on the following icon '{}'. Thus you can work with the minified version and you can still debug it easily
  6. I think there is no function to do that for now but I may be able to add it. For now, here's the trick: if your mesh doesn't have a parent you can position its pivot thanks to mesh.position.z = -0.5; mesh.position.x = 0; and then set the pivot matrix to reposition your mesh where it was initially. Your pivot matrix should be the identity with m[11] and m[13] with the right values With this set, you can now do mesh.rotation.y = whatever you want
  7. Sorry, I don't understand your question. If you are on Windows, you may want to have a look at
  8. Hello, You must use a local webserver to serve the files.
  9. Scale and rotation are in the 3*3 matrix, position must be stored in the 4th line (for row-major order matrix such in babylon.js) or in the 4th column (for column-major order matrix). More about row-major and column-major order:
  10. It could be nice to have something parametrable: pretty much everything is cloned by default but you can use flags to clone only what you want.
  11. I haven't read the whole discussion but that seems to contain answers to your questions:
  12. and here comes the question: up to where an instance should be a perfect copy of a mesh? Do they share all properties (or the properties at least are synced) (physices, geometry...) except transform or some of them could/must be overriden?
  13. Welcome on board SolidCatuar. The following link could be helpful: especially the "Things to remember" section. It doesn't explain everything so I'll try to give you more information if after reading this you still need it.
  14. In French: Je dis juste ça pour partager ma petite expérience en déboggage de code parce que je sais que c'est quelque chose qui m'a beaucoup aidé à devenir un meilleur développeur. I think the idea is to share experience so we can learn from each other. It was a tip dad72, don't be offended. This tip was for you and for anyone else.