jellix

Members
  • Content count

    120
  • Joined

  • Last visited

About jellix

  • Rank
    Advanced Member
  • Birthday 06/14/1979

Profile Information

  • Gender
    Male
  • Location
    Oldenburg (Germany)
  1. Great answers! Thanks a lot!
  2. Hi, have a look at https://www.babylonjs.com/demos/dragndrop Here you can see how the cursors position (2D) is transformed into a 3d-vector. Maybe it helps?
  3. Hi, I build up an object that is made of many identical items. Currently I'm merging all the meshes so that I have only a few drawing calls. Instead I could use instances. The advantage would be that the construction can be changed dynamically (add or remove some of the instances) and so the merged mesh doesn't have to be disposed and to be rebuild on every change. So in view of the performance: Is the rendering faster by merging meshes or by using instances?
  4. Hi, I think I've had the message, too a long time ago. Are you using a nightly build of a browser? Do you use a texture thats size aspect ratio is not 1:1 or 1:2?
  5. nice. But aren't some of you core developers working at microsoft? Wouldn't it be a solution that microsoft provides a free webserver to support this cool framework?
  6. Is it the same with cannon.js? Indeed this is a problem of many physic engines. They handle the forces of overlaying boxes like if they fall onto each other although they already are in contact for a while. And due to floatingpoint operations there are always some numbers that had to be shortened, so you get some effects that you don't wanna have. The best would be that the engine recognizes the stable position of the boxes and would then reduce the calculation down to zero until the boxes move again. Don't know if there is an algorithm for that but ... obviously it should give one.
  7. It works, thanks a lot! Excactly what I've needed. So ... how can I mark this thread as solved now? ---- And maybe one more question: Before I've used "var firstAbsolutePoint = myCurve[0].add(myMesh.getAbsolutePosition())" > Why wasn't that the correct way?
  8. Hi, how can I get the absolute positions of points of a curve? I'm getting the curve out of a Path3D Object that is a child of a Mesh. Currently I'm adding the absolute position of the mesh onto the local coordinates of the curve-points. But that's not a cool way, is it? --- Oh, just have to add some info: the mesh that contains the curve is rotated ... Maybe now it's not that easy any more :-)
  9. Good news! Will try it in the office next week (where I have a Vive). Btw.: From the customer's view, the topic 'mirroring' is always a big point. Think of an exhibition where the VR game is displayed to the audience on a second screen. They see both eyes simultaneously next to each other on a flat screen what is not the best viewing experience. So if there would be a way to show the VR-scene as a one-eye view, it would be a huge benefit.
  10. Is there a special kind of reflectivity or glossyness or metalness on it?
  11. Hi, just for the archives, if anybody finds this thread in the future: Of course the 'translate' function of the AbstractMesh-class is exactly what I was looking for. Just didn't find it because I only looked in the Vector3, the Matrix and the Mesh-class.
  12. Great work! Would love to see that as an extension so I could include it when needed. Maybe you know the module 'MoGraph' from the 3D software 'Cinema4D'? This is pretty exactly the concept of your code. And it's very useful! Also a lot of fun. An idea could be to distribute clones on vertices (or face-centers) of a mesh.
  13. When removing a Mesh by using 'dispose' I have to say that textures of the material of the mesh aren't disposed as well. I've had a case where the memory pumped up because of that. So I dispose the textures of the material first, then the material itself and afterwards I dispose the mesh.
  14. Hi, first you should look if the version of the safari browser really supports WebGL. Then to optimise the performance you should generally know how to - merge meshes to reduce the 'drawing calls' - use instances or clones when possible (plz learn about the differences) - clean up the scene: dispose meshes WITH their materials and also their textures.
  15. thanks for your kind words and your playground-links. I absolutely agree to seperate the business logic from the visualisation. That is why I initially only asked for displaying an item at a specific position between two points I'm working as a developer for over 10 years now, started with 'ActionScript1' in macromedia flash, going over to ActionScript3 (then it was Adobe Flash) and finally object oriented programming. So I like TypeScript a lot and use it also for developing the business logic. It's fun to create the classes for the lane. modules, the tray and the overall simulator and so on ... and I would say that this is getting into the right way. But for displaying the trays in the right way I just have to learn a bit more about Vector3- and Matrix-functions and maybe a bit more trigonometry and so on. By the way, the trays don't just move in one direction. There a curves in the lane an kind of Y-modules that are splitting and combining lanes also. And there are kind of 'ramps' so there are also differend y-positions. But that should not be the problem. So ...to get to and end of this thread ... I will try to get a result to the initial question and will have a deeper look to your suggestions. Finally I also want to tell you @Wingnut that you are the guy in this forum who always keeps up the great spirit, so it'salso fun for me to write with you:) Have a nice weekend!