Search the Community
Showing results for tags 'intersection'.
Found 11 results
CSG in Babylon
Feldspar posted a topic in Questions & AnswersHi guys, I wanted to share with you a custom library I made, that was very helpful on my project. It implements the basic constructive operations on meshes, like union, intersection, subtraction etc. In 3 words, it's called "constructive solid geometry". The library is an adaptation from csg.js (http://evanw.github.com/csg.js) for BabylonJS meshes. You will find this lib useful if you meet the need to dynamically build your own geometry with basic primitives. For instance you can carve cylindric holes in bigger cylinders to create pipes (wink wink to all old-school Half-Life mappers down there ). Anyhow, you can find the repository over here : https://github.com/CraigFeldspar/BabylonCSG. I'm still testing it, so feel free to signal any bug you would find.. Cheers ! Feldspar.
solved Mesh Intersect Timing
Art Vandelay posted a topic in Questions & AnswersHi, I have two meshes. In my createScene function i have a point where I check if they are intersecting. The thing is I would like to first move one of the meshes (change its position) and then IMMEDIATELY check if they intersect BEFORE waiting for the next rendering iteration. The problem is if i change the position of one mesh so that it intersects with the other and then immediately check for intersection it says they don't intersect (I guess because the actual position is changed only while the render loop is called). Is there anyway to solve this? Thanks!
how can i get intersection of Two Cubes
PiyushBhalala posted a topic in 3Dhttps://www.babylonjs-playground.com/#X2F6KI#2 can any one help to find how can I get the intersected area of cubes. actually, I want to highlight the intersected area in between these two cubes. also, want to print into console how much points are intersected.
Detect Intersection of Submesh
nicktendo posted a topic in Questions & AnswersIs it possible to detect an intersection between a mesh and a submesh of another mesh?
Leeodelion posted a topic in Questions & AnswersAre there any built-in methods to get the actual intersection of two (or more) geometries? E.g. the intersection point of a line and a plane, the line intersection of two planes, the arc intersection of a sphere and a plane, the point of three planes, etc... Thanks!
SPS solid particle intersections / collisions
jerome posted a topic in AnnouncementsThis topic is only for further research in the forum purpose. Just a link to this post :
How to use Observer - Trigger Ball - Switch
ian posted a topic in Questions & AnswersHi, I prepare simple playground http://www.babylonjs-playground.com/#21STMC#0 Can anybody show us how to program switchForBall as observer and ball which trigge switchForBall? greetings
How to avoid first intersection?
cartman posted a topic in Questions & AnswersHi guys, i'm going through the intersection tutorial and found something odd. In this example: http://playground.babylonjs.com/#TNFUK#1, somehow the console prints 'balloon1 intersects plan1' even before it starts intersecting with the bounding box.. Can anyone offer a suggestion/fix?
scene.pick not working when too close to a meshHi, I don't know if you could really call this a bug or maybe it's working as intended and I'm doing it wrong... (sorry) If you get sufficiently close and intimate with a mesh you can't pick it. Here's a playground: http://www.babylonjs-playground.com/#1KNCOA The important parameter to look at is the Z coordinate of the camera. If I set it to -1.06 then I can successfully pick the front face of the box and distance to the box is 0.01. (I'm printing pickResult in the console) If I set it to -1.04 then I can only pick the back face of the box yet I can still see the front face. If I set it to more than -1 then I can't see the box so I can't pick it, that's normal. It's as If the ray's origin wasn't exacly in the camera's viewframe but 1 unit length in front of it.
Hey guys, I've just noticed that the bounding box of a plane in the debug layer and the bounding box which is taken into account when computing mesh intersection with a point are inconsistent. Here is the playground example (just check the bounding boxes checkbox). So one of them should be fixed... Upd: Another problem is when the plane's bounding box does fit the bounding box of debug layer, there is no intersection at all (that's an obvious problem because of plane thickness I think). Here is the playground sample. Maybe the solution is to give a minimal bounding box thickness of BABYLON.Epsilon.
Fsquad posted a topic in Questions & AnswersIs there a way to get the intersection of two objects intersecting eachother as a mesh? I've had a look at the api but I don't seem to find anything like it. Thx!