masterdon

Members
  • Content count

    75
  • Joined

  • Last visited

About masterdon

  • Rank
    Advanced Member

Recent Profile Visitors

323 profile views
  1. saving and loading meshes

    Hi everyone, so whats the syntax for serializing all the meshes for saving and then loading them again in scene?
  2. 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?
  3. dashed lines in grid

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

    Thanks a lot guys can anyone help me on this topic
  5. 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?
  6. 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;
  7. Issue in loading image

    Perfect....thanks a lot
  8. 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?
  9. Hi Everyone, any help on this? m still failing to load the design.
  10. issue with movewithcollsion

    No worries. fixed now.
  11. 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?
  12. Storing custom data on mesh

    @Wingnut: Looks like exactly what i want..... let me give it a try. Thanks a lot
  13. Hi Team, I am working on an editor for room planner using babylon js. I am storing some custom properties for few of the meshes in my scene. shearWall.maxXPos = maxXPos; shearWall.minXPos = minXPos; These properties are having their use for dragging. there are other properties as well. each one of it having its own purpose. I need to save all the data and store it in database. so that user can revisit and work from where he have left the design. to export the data, i am using: var serializedScene = BABYLON.SceneSerializer.Serialize(scene);var strScene = JSON.stringify(serializedScene); The issue is, the custom properties set are not part of json data above. Is there a way to store the custom properties which becomes part of serializer above?
  14. issue with movewithcollsion

    You guys are genious.....good stuff
  15. @SvenFrankson: Is it loading the way i have shared the snapshot above? for me its appearing as blue patches(see the snapshot below). I have used this code to generate serialized data. var serializedScene = BABYLON.SceneSerializer.Serialize(scene);var strScene = JSON.stringify(serializedScene); And yes the json returned(and rendered) is valid one. checked in freeformatter.