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.

Enable Line Rendering Opacity JS?

Home Forums Graphics / Blender Enable Line Rendering Opacity JS?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27771
    GlifTekGlifTek
    Licensee

    I’m loving the effect of the “Enable Line Rendering” in the Verge3D section of the Mesh Data Panel.

    i’d like to control it’s opacity.
    (tried to use a value on it’s material but the material is unavailable because of the line rendering i’m assuming.)
    I could use another matte object over it that goes up in opacity to block it.. but the object is too convoluted to do that, and wouldn’t work i don’t think.

    Is there an easy JS snippet i could use to control it’s opacity? (also line width) ?

    thanks!

    • This topic was modified 1 month, 2 weeks ago by GlifTekGlifTek.
    #27835

    Hi GlifTek,

    To control the opacity, you need to enable it first on a line material:

    And then just change the material’s opacity value:

    Also the line width:

    Also, the parameters of a line material that you can control are described in the API docs here: MeshLineMaterial

    Co-founder and lead developer at Soft8Soft.

    #27946
    GlifTekGlifTek
    Licensee

    Great thank you!

    #28151
    GlifTekGlifTek
    Licensee

    Ivan, I’ve got the lines opacity animated now by running the call JS puzzle with update value as a var.
    Going very nicely.

    Also n-gons I’ve found don’t triangulate with the line render which is awesome! If you want quads just add an extra vertex super close to another.

    Anyway, my question now is this…
    My line rendered object isn’t showing its morph targets (shapekeys) with the morph target puzzle.

    I was going to try animating it in blender and use the animate frame puzzle, but decided to ask if there’s a way to be able to use its morph target.

    Thanks! :good:

    #28164

    I was going to try animating it in blender and use the animate frame puzzle, but decided to ask if there’s a way to be able to use its morph target.

    Nope, lines currently don’t support morph targets :unsure:

    Co-founder and lead developer at Soft8Soft.

    #28175
    GlifTekGlifTek
    Licensee

    Nope, lines currently don’t support morph targets :unsure:

    ah.

    be a lot cooler if they did B-)

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