Woodro Posted October 26, 2017 Share Posted October 26, 2017 Hello All, Is it possible to use the EdgesRenderer with the Solid Particle System? I cannot get it to work with a simple box. I'm able to create a box with edges, and a SPS with lots of boxes, but not both at the same time. Any pointers would be appreciated. Here is a small section of my code. The boxes show but without any edges. var box = BABYLON.MeshBuilder.CreateBox("b", options, scene); box.enableEdgesRendering(); box.edgesWidth = 10.0; box.edgesColor = new BABYLON.Color4(0, 0, 1, 1); var mat = new BABYLON.StandardMaterial("mat1", scene); box.material = mat; // SPS creation ========================================================== var sps = new BABYLON.SolidParticleSystem("sps1", scene); sps.addShape(box, nb); box.dispose(); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 26, 2017 Share Posted October 26, 2017 Did you try to enableEdgesRendering() but on the SPS? It is a regular mesh so it should work Quote Link to comment Share on other sites More sharing options...
Woodro Posted October 29, 2017 Author Share Posted October 29, 2017 Sorry for the late reply. I tried your suggestion, but no luck. I can get by with making the edges in the texture (see attached pic), but was thinking that the EdgeRenderer would have worked perfectly and looked better on my scaled boxes. I work at a Parts Distribution Center for an automotive company, and have been working on a Babylon project to help us look at storage location data (empty locations, most picked from, etc.). In the past few weeks I have found many answers to my questions on this forum, so thank you (and to your team) for all the posts/replies. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2017 Share Posted October 30, 2017 Hey Do you have a repro with the EdgesRenderer? Just to make sure there is no problem with it But tbh, the idea of the texture is far better regarding performance Quote Link to comment Share on other sites More sharing options...
Woodro Posted October 30, 2017 Author Share Posted October 30, 2017 I have just been testing the EdgesRenderer in my existing project. I really should make a small SPS to test/tinker with, and I still need to learn how to post to the Playground. I'm sure I will need the best performance as possible, so I will stick with the texture to make the edges. Thank you for the info!! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 31, 2017 Share Posted October 31, 2017 Good intro to the playground: http://doc.babylonjs.com/features/playground Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.