Home › Forums › Graphics / Blender › Enable Line Rendering Opacity JS?
- This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by GLiFTeK.
-
AuthorPosts
-
2020-05-19 at 4:12 pm #27771GLiFTeKCustomer
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!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-05-21 at 7:57 am #27835Ivan LyubovnikovStaffHi GlifTek,
To control the opacity, you need to enable it first on a line material:
lineObj.material.transparent = true;
And then just change the material’s opacity value:
lineObj.material.opacity = 0.5
Also the line width:
lineObj.material.lineWidth = 2
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.
2020-05-24 at 2:05 am #27946GLiFTeKCustomerGreat thank you!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-05-29 at 4:33 am #28151GLiFTeKCustomerIvan, 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!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-05-29 at 8:08 am #28164Ivan LyubovnikovStaffI 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
Co-founder and lead developer at Soft8Soft.
2020-05-29 at 8:28 pm #28175GLiFTeKCustomerNope, lines currently don’t support morph targets
ah.
be a lot cooler if they did
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature! -
AuthorPosts
- You must be logged in to reply to this topic.