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.

How can i add” line rendering ” verge3d-setting to geometry with Puzzles ?

Home Forums General Questions How can i add” line rendering ” verge3d-setting to geometry with Puzzles ?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #67443
    omejar
    Participant

    In my project, It works differently when I use ”Line rendering”setting & “enable wireframe for Materior “, and in my opinion ”Line rendering” is better.

    • This topic was modified 6 months, 3 weeks ago by omejar.
    Attachments:
    You must be logged in to view attached files.
    #67447
    omejar
    Participant

    I found “line rendering verge3d-setting” in GLTF code:

    not line rendering:

    
        "meshes": [{
                "extensions": {
                    "S8S_v3d_mesh": {
                        "colorLayers": {},
                        "uvLayers": {}
                    }
                },
                "name": ...,
                "primitives": [{
                        ...
                    }
                ]
            }
        ],
    

    with line rendering:

       
     "meshes": [{
                "extensions": {
                    "S8S_v3d_mesh": {
                        "colorLayers": {},
                       <strong> "lineColor": [0,0,0],</strong>
                       <strong> "lineWidth": 5.0,</strong>
                        "uvLayers": {}
                    }
                },
                "name": ...,
                "primitives": [{
                        ...
                    }
                ]
            }
        ],
    
    • This reply was modified 6 months, 3 weeks ago by omejar.
    #67469
    kdv
    Participant

    and in my opinion ”Line rendering” is better.

    Yes, it looks better (no triangulation, lines thickness can be set to more than 1px) and it can be activated only in 3D editor before exporting. You can’t do it with puzzles.

    Puzzles and JS. 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 meaning at all.

    #67914
    Crunch
    Customer

    so there is no way to activate line rendering on objects at runtime using puzzles? But is there a way to do it using a code javascript code snippet?

    #67915
    kdv
    Participant

    Export two meshes and switch between them (visible/invisible).

    Puzzles and JS. 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 meaning at all.

    #67965
    Crunch
    Customer

    so no magic snippet :(
    Issue for the current case i was working on is i have a lot of objects (100s) so too much of a headache to duplicate meshes.. Good idea though, thanks as always!

    #68290
    omejar
    Participant

    thank you for your information

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