Popular Content

Showing content with the highest reputation on 11/17/18 in all areas

  1. 2 points
    I made a progress bar using two rectangles, a container and a text block, here I thought I would share because I am very proud of myself ! You can find the code to run it just here: https://playground.babylonjs.com/ts.html#P3XLK9
  2. 1 point

    Vive le Roi! (Long live the King!)

    Vive le Roi is a stealth puzzle game which context is the French Revolution and in which you have to prevent the King from being beheaded! Yes, that's crazy! 😃 You can play the game on Kongregate: https://www.kongregate.com/games/seccia/vive-le-roi So, don't hesitate to leave me a comment, any feedbacks to improve the game is welcome. Thanks. Sylvain.
  3. 1 point

    Deltakosh out for 2 weeks

    Hey team! I'll be out for two weeks going to some needed vacations Do not expect any answers from me during this timeframe See you all in 2 weeks!!
  4. 1 point
    Hi Devs, I am trying to rotate PlanePanel using TransformNode, but one strange thing that I observed is it's causing overlap between the meshes/buttons. Am I missing something here ? PG- https://www.babylonjs-playground.com/#HB4C01#53
  5. 1 point
    Hi everyone; https://www.babylonjs-playground.com/#HB4C01#57 Is it possible to rotate the part on the bottom right in this example to form a corner? //solved https://www.babylonjs-playground.com/#HB4C01#58
  6. 1 point
    Found one trick so far, which is that the EdgeRenderer has a second argument called "checkVerticesInsteadOfIndices" which allows for coloring the walls. Also found that some shapes are prohibitively complex and can take minutes to add edges to (such as the scene in the very first image, the trees and craters have too many edges). Here is a picture showing both the nice edges and the shapes that are trouble: I've also been exploring the idea of a shader that could add a mild gradient to most surfaces, or could lighten voxel faces discretely depending on their elevation. I don't know how to write any of that, but its a maybe. Also tried unwrapping the meshes in blender and baking shadows -- I couldn't get it to work correctly but it hypothetically would be able to shade the voxels. The problem with this approach is that the baked texture would be pretty large compared to everything else. I probably won't try to make the unwrap+bake option work.
  7. 1 point

    Can't Add Image Layer from PNG

    there is must be something not right somewhere, because I just tried on my side and the following is perfectly working : me.game.world.addChild(new me.ImageLayer(0,0, {image:"cityscene"}), 1); and cityscape is the name of an png image with the src set to "data/img/cityscene.png" Are you sure, the path to the image is correct, and that the image is properly returned by your server ? Else, can you share your example, because just like this I have no clue why it's not working.
  8. 1 point

    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!
  9. 1 point

    Preloading Help

    Thanks DK that works great!! Just for future reference (as im sure i will forget sooner or later) here is how i ended up doing it with assetsManager https://www.babylonjs-playground.com/#XCPP9Y#719 Thanks again!
  10. 1 point
    Before rotation this will work, too: anchor.computeWorldMatrix(); edit: https://www.babylonjs-playground.com/#HB4C01#56
  11. 1 point
    Hiya S! https://www.babylonjs-playground.com/#HB4C01#54 In lines 43-46, I waited until scene ready (til after the panel rendered for the first time)... and THEN did the rotation. I don't know if it's operating correctly, but at least we know a work-around and a bit about the reason for the problem. update: PG #55 tries to eliminate the "flash" of un-transformed button-text... using a contorted button-by-button isVisible loop.
  12. 1 point
    You need to setup CORS on your images, if you want them to work in the playground (ie: put them on github). The good news is that it will work on the same server without CORS. Don't be sorry for being a newbie - we all started somewhere. Much better to be a newbie and learn new things
  13. 1 point
    Unfortunately all we have is then HTML canvas tools to render to a texture. The best option could be to try to disable the texture sampling mode and try to render at bigger scale (To get crisper results) ? https://www.babylonjs-playground.com/#XCPP9Y#713