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.

David Duperron

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 151 total)
  • Author
    Posts
  • in reply to: Measure tool for Verge3D #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!

    in reply to: Measure tool for Verge3D #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!

    in reply to: Measure tool for Verge3D #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.

    in reply to: Measure tool for Verge3D #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??

    in reply to: Measure tool for Verge3D #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?

    in reply to: Measure tool for Verge3D #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

    in reply to: Measure tool for Verge3D #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

    in reply to: gtaoVisible #75109
    David Duperron
    Customer

    Thanks @kdv!
    The material on which I would like to activate gtao is not an emission shader.
    GTAO can actually be activated on it as I can do it manually by changing the gtaoVisible parameter in the .gltf file before loading the application.
    In fact this parameter is false by default because the material has a transparency (alpha blend) which can be controlled by the user. Most of the time the material is opaque, and then it looks much better with GTAO, and in some rare cases the transparency is used, and in those cases, the problems related to GTAO in use with transparency are not really an issue for me… so I would like to be able to change this gtaoVisible parameter for this material after loading of the gltf file, and be avle to see the result in the viewport.

    in reply to: gtaoVisible #75093
    David Duperron
    Customer

    I’ve tried to enable it manually with js code. I managed to retrieve the correct material, and write the gtaoVisible parameter to “true” but I see no effect on the viewport… I used the following code:

    const material = v3d.SceneUtils.getMaterialByName(app, "NI_paint_vertex_color")
    material.needsUpdate = true;
    material.gtaoVisible = true;
    console.log(material)
    

    I can see in the console that the parameter has been set to true, but no visual change…

    in reply to: gtaoVisible #75092
    David Duperron
    Customer

    The easiest way would be to publish the App on the Verge3D network, but I have a 500:Internal server Error when I try to publish it. The Application folder is located outside the “normal” verge3D application folder and i use a symbolic link… any way to get it to upload properly??

    in reply to: gtaoVisible #75090
    David Duperron
    Customer

    Thanks Alex!
    I’ll try to pack something that reproduces this behaviour…
    And lastly, is it possible to change this gtaoVisible parameter after the scene loading? (from false to true) and to update the material in order to display with Ambient Occlusion?
    Thanks!

    David

    in reply to: gtaoVisible #75085
    David Duperron
    Customer

    Also Alexander: is there a way to control or change this parameter, either in Blender before the gltf export, or programmatically with some javascript? I don’t see any reference to this parameter in the developper reference…

    in reply to: gtaoVisible #75084
    David Duperron
    Customer

    Yes. That’s it! :scratch:
    If I try to activate the HiDPI option on some of my gizmo objects (e.g. xy plane move and Z-rotate), these two objects have the issue = not showing, whereas all the other objects with the same material and no HiDPI option are showing properly.
    And the issue is not systematic as I mentionned earlier. It can show properly from time to time, without any reason.

    in reply to: gtaoVisible #75083
    David Duperron
    Customer

    I think I may have found something, which is perhaps a bug. It seems that it has something to do with the “HiDPI compositing” option for the objects that has this material.
    When this option is active, an object with this material which shows up properly at the initial loading of the 3D scene can disappear after a few orbiting and change of point of view! Absolutely no other interaction with the object itself, and no puzzle related to it.
    Disabling the HiDPI option seems to solve the issue…

    in reply to: gtaoVisible #75082
    David Duperron
    Customer

    Hi Alexander!
    Thanks for the info.
    I am completely lost right now… I’ve got a material which sometimes shows up properly, and sometimes does nos show at all. I do nothing in between these cases except refreshing my web page, with exactly the same steps…
    Here is a capture of the material:

    I use this material for a grab/rotate gizmo which is supposed to show when I select an object. the color is driven by the vertex color of the mesh, and I use the Object Index to drive the intensity of the emission (when the object is dragged, it is highlighted). Everything was working fine until now, and I cannot identify what can cause such an unpredictable behaviour.
    Same gltf file, same binary file, same js files, and after initial loading, sometimes the material shows, sometimes it is not! No error message in the console. No clue… I’m lost.

Viewing 15 posts - 46 through 60 (of 151 total)