Setting line thickness in filled wireframe mode

When I want to render geometry in wireframe with a specific line thickness, I can call NodePath.setRenderModeWireframe followed by a call to NodePath.setRenderModeThickness. This works regardless of the order in which these calls are made.

However, when I want to render the geometry in filled wireframe mode, calling NodePath.setRenderModeThickness after NodePath.setRenderModeFilledWireframe does not work; there is no wireframe, the geometry is rendered normally, in filled mode. Is this a bug? (When I change the order of both calls, it does work.)

Also, the thickness one can set seems limited to 10 pixels; does this depend on the graphics card? (This is not a problem for me, just wondering.)

@rdb: Do you still read or answer PM’s (sent you one last week)? I know you prefer emails, but even though you said in other topics that your email address is available through the forum software, I cannot see an “email” button next to your posts or on your profile. I checked with Firefox and Chrome, on Windows and even on Linux.

Ah, you’re right. setRenderModeThickness sets the wireframe color back to (0, 0, 0, 0), which is transparent. This is indeed a bug, thanks. I’ll look into checking a fix for 1.9.2. Sounds like you’ve already found a workaround for the meantime. :slight_smile:

The line width is limited to 10 pixels on all NVIDIA cards. Some other cards are limited to 5 or 7, but the majority of cards support 10 or even more.

Also, make sure you are using 1.9.1 or later when doing line width, as this feature had a bug in 1.9.0.

I did see your PM; I had intended to reply to it sooner, but it dropped off my radar (which happens often to things that are not in my e-mail inbox…). You should have my e-mail address now, in any case.