-
Content Count
352 -
Joined
-
Last visited
-
Days Won
5
Arte last won the day on December 24 2017
Arte had the most liked content!
About Arte
-
Rank
Advanced Member
Profile Information
-
Gender
Male
-
Location
London, UK
Recent Profile Visitors
2658 profile views
-
-
"Are you okay with no rotation when this is enabled?" - BIG Yes from me Thank you @trevordev
-
-
-
Hi @keiz , No We need to ask @trevordev
-
-
Sorry for the long silence. I've been busy this week. I came across and ... Magic happens! Older version than v3.3 setPivotPoint is a different from v3.3 and up (local pivot and global pivot) box.setPivotMatrix(BABYLON.Matrix.Translation(x,y,z), false); // Sorted everything (Regular playground) I still need to test NULL v4.0 using setPivotMatrix(BABYLON.Matrix.Translation(x,y,z), false), i will let you know if there is any issue. Thank you for your time
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
Now i have complete mess. Parenting and pivots? 3.3 4.0
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
Ok. That mean i need to try 4.0
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
Arte reacted to a post in a topic: when using a MeshBuilder does .position set an edge or the center?
-
@Deltakosh I updated npm babylonjs "Babylon.js null engine (v3.3.0)" , but for some reason I have same results as before. On PG is working perfect. 😕 ***EDITED*** I tried what @trevordev suggested "I would recommend using a parent object instead of the pivot" Results: https://www.babylonjs-playground.com/#8PIKRZ#3 BABYLON.CSG ignoring not just pivot but parenting as well??? My bad. I forgot sphere.computeWorldMatrix(true); https://www.babylonjs-playground.com/#8PIKRZ#4 But npm babylonjs still issue.
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
-
Hi @iamnick I'm not sure whether it will help, but take a look at cameraToUseForPointers. scene.cameraToUseForPointers = scene.activeCameras[0];
-
Now I can go-ahead with my project "Parametric Cabinet". Thank you and 👍.
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
-
-
https://www.babylonjs-playground.com/#8PIKRZ#2 If you comment out line 55. Original part position - Out. Or comment out lines 67-79, to see original view.
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
-
-
Tags docs: https://doc.babylonjs.com/resources/tags
-
-
Another approach - Tags. http://www.babylonjs-playground.com/#Z1PG79#6
-
@Deltakosh Regular PG results Serializer!!!
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
@Deltakosh Shared files: index.html // create and download (serialised scene) serializedScene.json // downloaded json file (serialised scene) Loader.html // load serialised scene https://github.com/Gal-Arte/BabylonTest/tree/master/NULL ENGINE using setPivotPoint and CSG Playground to compare https://www.babylonjs-playground.com/#8PIKRZ#1 Lets hope for the best
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
Okay I'm creating everything on server side and passing data through assetsManager.addMeshTask. Does that make sense? Thank you for your time.
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with:
-
100% Same as in PlayGround /////////////////////////////// // CODE FROM NULL ENGINE var parent = BABYLON.MeshBuilder.CreateBox("Parent", {height: 3.2, width: 2.2, depth: 1.2,sideOrientation: BABYLON.Mesh.DOUBLESIDE}, scene); var mat = new BABYLON.StandardMaterial("material", scene); mat.alpha = 0.3; parent.material = mat; var part = BABYLON.MeshBuilder.CreateBox("Part", {height: 3, width: 2, depth: 1,sideOrientation: BABYLON.Mesh.DOUBLESIDE}, scene); part.setPivotPoint(new BABYLON.Vector3(0,1,0)); part.position.x = 1; // part.rotation.x = -1; part.parent = parent; var tool = BABYLON.MeshBuilder.CreateBox("Tool", {height: 1, width: 2, depth: 2,sideOrientation: BABYLON.Mesh.DOUBLESIDE}, scene); tool.material = mat; tool.setPivotPoint(new BABYLON.Vector3(5,-1,0)); tool.position.x = 1; tool.rotation.x = -1; // tool.parent = parent; var partCSG = BABYLON.CSG.FromMesh(part); var toolCSG = BABYLON.CSG.FromMesh(tool); var newPartCSG = partCSG.subtract(toolCSG); var newPart = newPartCSG.toMesh("csg", part.material, scene); // tool.dispose(); part.dispose(); // CODE FROM NULL ENGINE ///////////////////////////////
- 31 replies
-
- csg
- setpivotpoint
-
(and 1 more)
Tagged with: