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.

Measure tool for Verge3D

Home Forums Plugins Measure tool for Verge3D

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #68046
    baz.schonfeldt
    Customer

    Ahhhhhh. I misunderstood the ‘application folder’ instruction….. I have a folder labeled ‘applications’ with all my Verge apps in it. It’s now working perfectly.
    Thank you, kind sir.

    #68047
    kdv
    Participant

    Thank you, kind sir.

    You’re welcome. Come again B-)

    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.

    #75561
    David Duperron
    Customer

    Hi Kdv!
    I’m having an issue with your measure tool, more precisely with the line(s) material which seems incompatible with the material I am using.
    The consequence is that the lines are not visible when an object with my material is somewhere behind the measure lines.
    When the material has some transparency we can see the lines “through” the material (blue cube in my example), but as soon as there is a mesh with this material in “opaque” configuration the lines disapear (transparency is controlled by the material alpha attribute in my material).
    Any idea how I could fix this? Does this have to do with the renderOrder in some manner?
    Thanks for your help!
    The example is here:

    https://v3d.net/tjm

    #75563
    kdv
    Participant

    enable DepthTest for materials used to draw lines.

    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.

    #75564
    David Duperron
    Customer

    Ok Great! thanks
    We loose the “always on top” behaviour but that’s not a big issue for me…
    Another quick question: how to increase the scale of the dots and arrows at the lines end??
    Thanks!

    David

    #75565
    kdv
    Participant

    The same way as for labels. Change scaling factor.

    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.

    #75566
    David Duperron
    Customer

    And another one: it seems that there is an issue with multimaterial objects. In the puzzle object selector they are represented with an “empty” icon whereas the monomaterial objects are represented with a standard object icon.
    And it seems that the measure tool does not recognize these objects (as they are indeed “parent” object with children geometries attached to them).
    How can I add these generated submeshes to the objects to be taken into account for the measure tool?

    #75567
    David Duperron
    Customer

    Ok but there is no option for these line ends as there is for the labels… Do I have to hard code it in the puzzle code??

    #75568
    kdv
    Participant
        dimPointOne.onBeforeRender = function() {
          setObjectScale(this, 5);
        };

    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.

    #75569
    David Duperron
    Customer
        dimPointOne.onBeforeRender = function() {
          setObjectScale(this, 5);
        };

    I do not see where to put this code… dimPointOne is only defined within the enableMeasureTool function.

    #75570
    kdv
    Participant

    you just need to change 5 to some other value.

    How can I add these generated submeshes to the objects

    coding

    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.

    #75572
    David Duperron
    Customer

    Ok Got it thanks!
    Also it gave me the opportunity to tune your puzzle block to add a scale option fore these ends. Everything works fine now!

    #75586
    David Duperron
    Customer

    you just need to change 5 to some other value.

    How can I add these generated submeshes to the objects

    coding

    I created a procedure to extract the names (not 3D objects!) of submeshes and add them to the list of measurable objects, and now everything is as expected!

    Thanks for the help!

Viewing 13 posts - 16 through 28 (of 28 total)
  • You must be logged in to reply to this topic.