Is this possible?
it is possible as a "lineWidth" property on a "renderer" node. The
"renderer" node is deprecated as I am moving the functionality from
that into the node "flags" attribute.
Go ahead and use it for now - I'll let you know when I remove the
"renderer" node, at which point you can specify it on some node flags
instead.
I've tried both of these and I don't see any change in line thickness:
type: "node",
flags: { lineWidth: 2 },
type: "renderer",
flags: { lineWidth: 2 },
When I tried:
type: "renderer",
flags: { lineWidth: 2 },
The scene went black -- do I need to set all the other normal defaults? Does embedding a render node turn off the normal defaults?
{
type: "renderer",
lineWidth: 2,
nodes: [
// nodes to which lineWidth is applied
]
}
PS. Avoid nesting the "renderer" node - there are issues with that
which is part of the reason for moving to the flags.
On Thu, May 5, 2011 at 9:37 PM, Stephen Bannasch
<stephen....@deanbrook.org> wrote:
>>I'd like to make the lines I'm creating with line-loops and geometry nodes display thicker than 1 pixel.
>>
>>Is this possible?
>
> I've tried both of these and I don't see any change in line thickness:
>
> type: "node",
Like this:
{
type: "renderer",
lineWidth: 2,
nodes: [
// nodes to which lineWidth is applied
]
}
PS. Avoid nesting the "renderer" node - there are issues with that
which is part of the reason for moving to the flags.
BTW the rationale for the "flags" was the freedom to arbitrarily set
modes/configs on any subgraph in a scene, rather than be restricted to
only being able to set them on a subtree rooted by a "renderer".
http://visual-demos.dev.concord.org/seasons/samples/line-width.html
code: https://github.com/stepheneb/seasons/blob/master/samples/line-width.js