Home › Forums › Programming › Curve messing with objects selection
- This topic has 7 replies, 3 voices, and was last updated 2 months, 1 week ago by visualizer.
-
AuthorPosts
-
2024-02-29 at 11:00 am #71217David DuperronCustomer
Hi again,
I am struggling with a strange behaviour when trying to draw curves.
Here is the simple demo app that show this issue:
handling curves
When the app loads, a curve is traced (CatmulRomCurve3) using the positions of the four visible spheres, a geometry is created and its positions are taken from this curve. And a new Line object is created using this geometry, added to the scene but not shown (object.visible = false).
Then the behaviour is OK: when the user hover one of the spheres, it highlights, and when he clicks the gizmo is attached to it and allows to move the sphere.
BUT, when I show the line (press G on the keyboard), the selection gets unpredictible and messy… until the curve is hidden again (H key).
Another functionality of the app is to update the curve upon the movement of one of its definition points, which works fine as far as I can see.
Anyone has a clue of what’s going on when the line is displayed??
Thanks!David
2024-02-29 at 12:20 pm #71222David DuperronCustomer2024-02-29 at 7:57 pm #71228kdvParticipantenable
xRay
for clicking and hovering. your curve has geometry. the raycaster takes into account geometry parameters (not only the visible shape) when detecting what object is in the front.Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-10-11 at 10:27 am #77915David DuperronCustomerI’m digging this old post as I still have the issue…
I have created simple line objects in my scene, with LineBasicMaterial applied to them, no group, no parent excepted the Scene, and when I hover other objects for which I have set up a Hovering effect (outlining when hovering objects from a certain group), the outlining is also applied to the newly created objects!
Why does this happen??
How can I prevent this?The Xray option does not solve my problem…
Thanks for the help
2024-10-11 at 10:54 am #77917kdvParticipantIt’s an old bug of the Outline pass in Verge3D: line objects are also outlined. I just use OutlinePass.js module from three.js. It works with no issues.
https://drive.google.com/file/…/view?usp=sharingPuzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-10-11 at 2:03 pm #77918David DuperronCustomerHi Kdv!
Yes I saw one of your old posts about that after I posted this message.
Now the question is: how do I use this three.js module instead of the V3D one??2024-10-11 at 10:13 pm #77922kdvParticipanthow do I use this three.js module instead
Port this example https://threejs.org/examples/?q=outline#webgl_postprocessing_outline
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-10-12 at 11:26 am #77930visualizerCustomerHey David !
Just out of curiosity, where this type of functionality is used? OR required?
Thx
-
AuthorPosts
- You must be logged in to reply to this topic.