• Content count

  • Joined

  • Last visited

  • Days Won


iiceman last won the day on May 8 2016

iiceman had the most liked content!


About iiceman

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location

Recent Profile Visitors

2,276 profile views
  1. iiceman

    Cylinder between two points

    Here the fixed version (setPivotMatrix with the new optional parameter postMultiplyPivotMatrix set to false) of the example that JohnK mentioned: http://playground.babylonjs.com/#191SVM#12 And here my fixed playground, with no more need for negative angle: https://www.babylonjs-playground.com/#1RWE59#134 @JohnK I compared the two playgrounds and realized I had used the wrong order when calculating the cross product. Thanks for the hint!
  2. Remember the fun we had with particles back then: Maybe you could use the 2D particles and control them to cover the model using the vertext data... I mean we had a cool möbius strip (http://www.babylonjs-playground.com/#2KOEWJ#9) back then so placing them statically on some fixed positions should also be possible, right?
  3. iiceman

    Cylinder between two points

    Dang, somehow I still can't get it to work: https://www.babylonjs-playground.com/#1RWE59#131 It's always off. Any idea what I am doing wrong? Edit: happens with the original playground, too, if I change the values: https://www.babylonjs-playground.com/#1RWE59#132 Edit 2: Never mind, I think I got it now: https://www.babylonjs-playground.com/#1RWE59#133 Seems like the calculation of the angle was not quite correct. I now use acos of the dot product and then the negative angle. I have no idea if that's really correct, but it passed my tests var angle = Math.acos(BABYLON.Vector3.Dot(v1, v2)); cylinder.rotationQuaternion = BABYLON.Quaternion.RotationAxis(axis, -angle); I read something about the arc cos here http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm, and then did the rest by some old fashioned trail and error. Let me know if I did it wrong and just got lucky somehow Edit 3: that those things look like penises is totally unintended!
  4. iiceman

    Cylinder between two points

    I see I see, so a fixed bug it, thanks alot for the quick reply guys!
  5. iiceman

    Cylinder between two points

    Hey guys, long time no see! I have been pretty busy and didn't have time to have fun with BabylonJS, but I had an idea that I wanted to try out. Therefor I need to connect two points with a cylinder, just as described in this thread, but for some reason all the playgrounds seem broken. I remember it worked just fine back then but now the cylinder is always off and doesn't connect the sphere (here for example: http://www.babylonjs-playground.com/#1RWE59#12). Anybody got an idea whats causing the behavior? Is it a bug, a fixed bug or a feature? And even more important: how do I get the desired result nowadays? Hope somebody can help, thanks in advance!
  6. A playground would be nice. I would love to see how you use vertex transparency to implement Fog of War. I thought about how to do it a while ago bit didn't have a good idea yet. I wanna see how you do it. Splitting the mesh in submeshes might be easy: 'You can speed things up by subdividing your mesh into submeshes using mesh.subdivide(x) where x is the number of submeshes you want.' (source: https://doc.babylonjs.com/how_to/optimizing_your_scene_with_octrees#optimizing-collisions-and-picking) ... but not sure if submeshes work with those Occlusion Queries.
  7. iiceman

    Overbount - A multiplayer shooter

    Looks cool, good job! I really like the graphic style!
  8. Awesome! Thats really huge! (as DK likes to say) Especially the self-shadowing, that has been bugging me for a while! I have to try that out as soon as possible! (*feeling*excited*)
  9. iiceman

    New Playground features

    Awesome! Updated one of my old playgrounds right away to try things out and found it right away with the new search (search performance is really good, too!)
  10. iiceman

    Lock pointer to object

    I don't think you can prevent the user from moving the point... would be horrible if java script was allowed to do that, right?
  11. iiceman

    Canvas2D ScreenSpaceCanvas behind 3d scene

    Seems like you can specify a renderingGroupID: http://babylonjs-playground.com/#272WI1#79 (found here: https://github.com/BabylonJS/Babylon.js/blob/0e1d4095b2e99b833f0a6f664e8495dbbf69f65d/dist/babylon.2.5.canvas2d.d.ts#L660)
  12. iiceman

    [SOLVED] ProceduralTextures don't work anymore

    Looking good again, thanks for the quick fix!
  13. iiceman

    dynamically position

    @JimmyBuchman I am not sure what you mean by layer by layer... like that: http://www.babylonjs-playground.com/#XALW2#13 -> click spheres (has a bug, sometimes if you click them in the wrong order it draws a wrong connection)
  14. iiceman

    Free Camera with a mesh in Front

    I assume you are referring to this: https://doc.babylonjs.com/tutorials/cameras,_mesh_collisions_and_gravity -> 4 - Object vs. object collision ... right? I think the position is always relative to the mesh, because you set it as a property of the mesh. There was a short discussion about it that I remember: ...but with no real solution. I know that offset behaves strangely. What I did was just try different value and see what fits best. Maybe somebody else has a better idea. Would be great if it could be visualized somehow! (Maybe with @jeromes ribbon from the above link?)
  15. iiceman

    Free Camera with a mesh in Front

    @JohnKs parenting suggestion seems pretty solid: http://www.babylonjs-playground.com/#P1YTR#0