We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Curve messing with objects selection

Home Forums Programming Curve messing with objects selection

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #71217
    David Duperron
    Customer

    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

    #71222
    David Duperron
    Customer

    Here is a capture of the associated puzzles.
    (there is also a functionality to add spheres on the plane, when pressing “n” and dblclick whith the mouse over the ground, but it does not interfere with the above I think…

    #71228
    kdv
    Participant

    enable 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.

    #77915
    David Duperron
    Customer

    I’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

    #77917
    kdv
    Participant

    It’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=sharing

    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.

    #77918
    David Duperron
    Customer

    Hi 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??

    #77922
    kdv
    Participant

    how 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.

    #77930
    visualizer
    Customer

    Hey David !

    Just out of curiosity, where this type of functionality is used? OR required?

    Thx

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.