masterdon

Members
  • Content count

    78
  • Joined

  • Last visited

About masterdon

  • Rank
    Advanced Member

Recent Profile Visitors

409 profile views
  1. Hi Team, I am working on a floor planner. I have implemented freewall drawing feature using ribbons. I am also setting the borders to freewall using enable edge rendering. This works fine for individual ribbons. however, there can be a situation where multiple freewalls are connected to each other. in this case, i want borders to come for complete path and not individually. i tried merging the meshes using `BABYLON.Mesh.MergeMeshes` . however, the borders are coming still individual Something similiar to freewalls fro, homestyler (https://www.homestyler.com/floorplan/?&lang=en_US). what is the best way to implement something close to this.
  2. @RaananW: actually it didn't worked out. The borders after merging were not coming as one object. I ended up taking the array of points for meshes i am merging and then drawing the border separately using createLines.
  3. Hi Deltakosh, The issue is resolved now . Thanks for stopping by.
  4. saving and loading meshes

    Hi everyone, so whats the syntax for serializing all the meshes for saving and then loading them again in scene?
  5. Hi Team, I am merging the array of ribbon objects to create one mesh. However, edge rendering for new mesh is creating edges for individual sub meshes instead of creating for complete object. Is there a way to change this behaviour?
  6. dashed lines in grid

    @Deltakosh: any work around for thhis.
  7. Storing custom data on mesh

    Thanks a lot guys can anyone help me on this topic
  8. Hi Team, I am having a PG here http://www.babylonjs-playground.com/#SUXKHY#43 . FYI, as per requirement, with the help of legendary @Wingnut, camera rotation has been disabled here. by limiting arcCam alpha and beta. Now i am trying to assign key events on canvas for mesh movements. keydown and keyup are working fine. however, keypress is failing. code is at line number 149. what could be the reason?
  9. Hi Everyone, I have created a grid using GridMaterial on box mesh. the issue is, the grid isn't coming complete. Its broken on all the edges(see the snapshot). i.e. no boundary lines to wrap everything in rectangle. i have also tried setting uOffset and voffset on material however its not working. what am i missing here? Here is my code: var gridBox = BABYLON.MeshBuilder.CreateBox("box1", { width: objectProperties.width-1, height: 0.05, depth: objectProperties.height + 1, updatable: true }, scene); gridBox.position = new BABYLON.Vector3(objectProperties.left + startFromLeftPosition + objectProperties.width / 2 - horizontalSlotHeight / 2, 10.05, startFromTopPosition - (objectProperties.top + (i > 0 ? 8 : 7))); var defaultGridMaterial = new BABYLON.GridMaterial("default", scene); defaultGridMaterial.majorUnitFrequency = 0; defaultGridMaterial.minorUnitVisibility = 0.1; defaultGridMaterial.gridRatio = 1; //defaultGridMaterial.uOffset = 0.5; //defaultGridMaterial.vOffset = 0.5; gridBox.material = defaultGridMaterial; gridBox.material.alpha = 0.5;
  10. Issue in loading image

    Perfect....thanks a lot
  11. Issue in loading image

    Hi Everyone, var scalingObject = BABYLON.Mesh.CreatePlane("scalez", 1, scene, false); scalingObject.material = new BABYLON.StandardMaterial("outputplane", scene); scalingObject.position = scalorPosition if (isXScalor) scalingObject.material.diffuseTexture = new BABYLON.Texture("../images/icons/icons-Resize-Horizontal.png", scene); else scalingObject.material.diffuseTexture = new BABYLON.Texture("../images/icons/icons-Resize-Vertical.png", scene); scalingObject.rotate(BABYLON.Axis.X, 1.5, BABYLON.Space.LOCAL); I am using above code to create little boxes as re-sizable controllers. i have set a image icon material as texture to plane for giving them look of resizable controller . However the background of material(or color of mesh) is coming black instead of transparent. what could be the reason?
  12. Hi Everyone, any help on this? m still failing to load the design.
  13. issue with movewithcollsion

    No worries. fixed now.
  14. issue with movewithcollsion

    Hi Guys, Facing one weird issue. I have used most of the same code from pg shared by @adam. . i am creating the sub collision convex by specifying height width depth as it may be different for the shape specified. all works fine in pg here https://www.babylonjs-playground.com/#VMFNH#60 However, this sub meshes are not positioned correctly on my main code. elements are positioned in wrong place even after specifying the parent as main ribbon mesh. what could be the issue here?
  15. Storing custom data on mesh

    @Wingnut: Looks like exactly what i want..... let me give it a try. Thanks a lot