Myjestic

Members
  • Content Count

    86
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Myjestic reacted to NasimiAsl in geometry builder   
    thanks (you make me happy really ) i start both tools from today i post the result in any week 
  2. Thanks
    Myjestic reacted to NasimiAsl in Create sphere from height map?   
    https://www.babylonjs-playground.com/#1ZEABJ#193
    i am on it to make independent function
  3. Like
    Myjestic got a reaction from NasimiAsl in Create sphere from height map?   
    Hi @NasimiAsl and all others,
    I also want to use a heigth map on a sphere. Unfortunaltely the PG from above does not work.
    I just wanted to take a look at it, if this is what I need. Can you help me out please?
     
  4. Like
    Myjestic reacted to hcmetal in How to occlude glow effect   
    @Myjestic,
    As shown in PG: https://playground.babylonjs.com/#QLBNSV#2
    1. Include sphere1 in the glow layer, and set its material's emmissiveColor to black. Then sphere1 will occlude sphere2's glow effect.
    If you want both spheres to glow, consider setting their emmissiveColor to different colors or intensities. Don't over-blow the exposure so you can see the "occluded" effect.
    PG: https://playground.babylonjs.com/#QLBNSV#3
    2. You can use the sphere materials' emmissiveColor to control the glow color, or use "gl.customEmissiveColorSelector" on the glow layer.
    Doc: https://doc.babylonjs.com/how_to/glow_layer#controlling-glow-color-per-mesh
    Hope this solves your problems. Please let me know if there are any further questions.
    Cheers!
  5. Like
    Myjestic got a reaction from Arte in Distance between FreeCamera and Mesh   
    @Arte
    Sorry, everything is fine and my problem is solved. We just kidding around a bit which variant is more performant. 
  6. Thanks
    Myjestic reacted to RaananW in registerBeforeRender on childmeshes created in "for loop"   
    Just for understanding - 
    What you did it working. But only for the last sphere defined  The async function you register (in the registerBeforeRender) is using the sphere variable reference. As sphere is defined in the scope above it, and javascript hoists variables, the sphere reference inside this function always directs to the last sphere you created. @aWeirdo (Hey, I always find it hard calling you that ) suggested a great way of solving this.  Personally, I like using the forEach function over arrays, as it creates a new context each time you run it. If you want to register a function for each sphere, this is how I would to this:
    https://playground.babylonjs.com/#M4FKI9#4
    I find it cleaner, but it is all a matter of taste in that case.
  7. Like
    Myjestic reacted to aWeirdo in registerBeforeRender on childmeshes created in "for loop"   
    @Myjestic 
    It is also possible with a little change, adding the registerBeforeRender to the child itself,
    https://playground.babylonjs.com/#M4FKI9#3

    I just prefer it the other way  

    Have a nice friday.
  8. Like
    Myjestic got a reaction from RaananW in Problems with Playground URL   
    Perfect. Now it's working for me.
    @RaananW
    Short explanation about the proxy I'm talking about. I am behind a corporate proxy (bluecoat) where all urls are blocked by default.
    The rules for the whitelist comes from a server, where every user can submit a request of a specific blacklistet url.
    For "http://babylonjs-api2.azurewebsites.net/" someone has done it yet, so this url was categorized as "save for use" and whitelisted.
    The url "https://babylonjs-api2.azurewebsites.net/" was not categorized until yersterday, so it was blacklisted. All I got back from this blacklisted url is "Hello, you are not allowed because of reasons." And PG is awaiting a JSON String and not a "you are not allowed string", so it always redirected to the basic scene. 
    I submitted the https-url yesterday evening for review and got a positive approve this morning. This means, the https-url is now whitelisted.
    Nonetheless, independent from this proxy issue, there are some firefox users suffering from wrong or bad configured certificate policy. That cause some https pages not to load. 
    Another problem could be the mixing of http and https pages. Some browser are blocking mixed content by default. This could be the problem of @lihis
    Summarizing, this change in the code should be a good approach to ensure access to PG without problems.
    Thanks all for your help. 
  9. Like
    Myjestic got a reaction from Deltakosh in optimize merged mesh   
    I've forgot to do UV-Unwrapping.
    With optimizing the vertices (former 14k) I got 3k. After UV-Unwrap I got 8k.
    With this 8k mesh, texturing works as it schould.
    I will try texture tiling with the 3k mesh and let you know 
  10. Like
    Myjestic got a reaction from RaananW in Export mesh to OBJ   
    Myjestic --> hitting his forehead with his hand ... many times 
    Thank you so much. You guys / this forum is so great!
  11. Like
    Myjestic got a reaction from Deltakosh in switching from 2.4 to 2.5 and get error "Uncaught TypeError: Cannot read property 'removeEventListener' of undefined"   
    Little mistake, big impact
    With adding "canvas" to the line, everthing works as aspected.
    Thanks a lot, Deltakosh!
  12. Like
    Myjestic reacted to adam in Fade in / out complete scene   
    http://www.babylonjs-playground.com/#2FGYE8#2
  13. Like
    Myjestic reacted to Deltakosh in Fade in / out complete scene   
    Hey!
    here is an example: http://www.babylonjs-playground.com/#2FGYE8#0
  14. Like
    Myjestic got a reaction from MarianG in save babylon mesh as new babylon file   
    Problem solved. Bulisors code work like a charme. It was my fault.
    The merged meshes will be imported correctly.
  15. Like
    Myjestic got a reaction from Deltakosh in save babylon mesh as new babylon file   
    Problem solved. Bulisors code work like a charme. It was my fault.
    The merged meshes will be imported correctly.
  16. Like
    Myjestic got a reaction from Deltakosh in Change particle System emitRate live   
    Argh. I was searching for days for this problem.
    Now I found it. My particle emitter was a clone of a mesh and that was the reason why nothing happend if I changed the emit rate. Know the emitter is a single mesh and everything works like a charm.
  17. Like
    Myjestic got a reaction from Deltakosh in decreasing fps in Corner of meshed plane / free camera   
    Thanks to all for dealing with this problem.
    It tested this and the problem appear even if you switch to wireframe mode.
    You are right. This eleminates the fps drop. BABYLON.Mesh.MergeMeshes only works with clones not with instances.
    As far as I remember, Deltakosh wrote in another post, that merging instances is now possible. I will search for this post and read it again.
    Thanks so far.