Experimental Colored Wireframe

(ideasman42) #1

Had a crack at the wireframe color issue. I dont think its compatible with regular viewport wire drawing (which I think is why we rejected previous patches), but it could be an option like matcaps

Patch & Screenshot: https://developer.blender.org/D458


note, edits to posts on this page were because I messed up splitting the thread off initially.

0 Likes

(PhysicsGuy) #2

Maybe it’s the quality of the image, but the dotted lines make the viewport really restless. It kind of looks like these images particle physicists used the make to visualize track of subatomic particles in bubble chambers.

0 Likes

(BTolputt) #3

The stippled lines are quite noisy, which I think will create a little eye fatigue. Also, as you noted in the patch, the object colour can be used for other things (such as the materials) which could make it next to useless in a scene with a lot of objects sharing similar materials/colours.

If I could pose a small suggestion - I think the colour variable should be separate to existing ones, i.e. a new data value in the object/mesh structure. Secondly, I think the user should be able to select colours at a set luminance and the selected objects are displayed by increasing the luminance of the base colour. Using the colour-wheel widget - the user is limited to colours with the VALUE gauge turned down to about 0.3 and when the object is selected, the wireframe is increased in brightness (i.e. moving the VALUE up from 0.3 to 1.0 or thereabouts).

This sound reasonable/feasible (and yes, definitely off-topic now!)

0 Likes

(ideasman42) #4

@BTolputt. thanks for constructive criticism, This stuff isnt really hard, just has to be done carefully so as not to be really annoying for users. Im happy to update the patch and try some different methods of drawing.

but please post feedback on https://developer.blender.org/D458

edit: noted some possible improvements in the ticket.

0 Likes

(crazycourier) #5

I think it looks like a great start, thanks for pulling this out of your magic hat Cambell. This will be really helpful!

0 Likes

(JuhaW) #6

Is this colored wireframes version downloadable ?

0 Likes

(jpb06) #7

Dear ideasman42, since I could not find a way to send you a PM… first of all, a huge thank you.

Second, judging from the screenshot and the Bryce ones (if you have not gone to the page I linked, to it, as it shows the modeling with Bryce of spaceships with, in the worst case, 100253 objects used) I think that thin solid lines are more pleasing than dotted ones.

Third, +1 for a Matcap-like special display mode.

0 Likes

(NinthJake) #8

This is a really good start. I hope it can be expanded in the future so that it will be as functional as in other software that shall-not-be-named :stuck_out_tongue_winking_eye:

Thank you for making this patch Campbell. It has been a highly requested feature for many years and ignored for just as long.

Out of curiosity, what are the features that colored wireframes collide with?

0 Likes

(Alvaro) #9

Colored wireframe is the tip of the iceberg. There is much more work to be done in the modelling department without transforming Blender into a CAD like application. I do lot of CAD based work in Blender however I don’t need any parametric capabilites or cursor enhancements except when cursor works as knife tool. And I could see how my requests could benefit an enviroment modeller doing assets for a game or movie or how hard-surface modelling improvements could help someone doing organic modelling in a Blender production. I think this is the diagnosis Blender Foundation guys have failed to made reacting to criticisms to the Gooseberry project.

0 Likes

(ideasman42) #10

@NinthJake

Currently wire color denotes selection, group membership, linked state, dipli-group members and in some cases object-type (set scene objects also have their own colors).

So to allow custom colors overloads existing colors with too much information and it means you don’t for example know if a green objects is in a group. or set to green by the user. (same goes for selection… other things)

Also, allowing custom colors can conflict with user preferences for 3d-view background.

So my patch ignores the theme for the background color and you can set wire to whatever color you like and you know anyone loading the file will be able to see the colors too, the same way you do.

The details, I’m happy to figure out along the way. Personally I dont mind the dashed line but seems not popular choose… trying something else is no big deal either.

Or someone could draw a mockup of what would work well.

Id like it if someone can really try to solve some design issues like…

  • How would you show the active object, selection?
  • Do we want to allow any color, or should it be limited to a palette (like bone colors)?
  • Should colors be apart of some larger classification system? - or is simply setting a color per object nice and simple?

Of course I can make the decisions and commit it, but probably we get better results if others give ideas and we try some of them out first.

0 Likes

(Piotr Adamowicz) #11

I’d argue that showing whether or not an object is in a group is not particularly useful. Showing which group the object is in would be much more desirable.

As for selection, linking and dupli-groups, perhaps that could be indicated by brightness instead? Or an outline? Or a bounding box? Or an icon next to the object’s origin while selected?

Also, linked duplicates are not indicated at all, and I’d say that’s much more important than group membership. I’ve lost much time in cases where I pressed shift-d instead of alt-d.

0 Likes

(JuhaW) #12

Active object could be solid&wireframe and selected objects opposite of solid/dotted lines.
So if wires are solid then selected objects are dotted and vice versa.

0 Likes

(system) #13
  • How would you show the active object, selection?

Tough one. Do we have animated colours? :smiley:

You could use a not allowed colour here like the standard orange. See below. Or you could outline the selection. Or make the wire lines bigger.

  • Do we want to allow any color, or should it be limited to a palette (like bone colors)?

When it’s an either or, then i would say limit it. But why not both? Default it to a limited 8 bit or even fewer (16 Colors?) palette, minus the colours that are in use for other needs. And allow an advanced, free colour picking too.

That way you limit the colour confusion to the rare cases where you need more than 256 colours. Which is a very rare case anyways.

  • Should colors be apart of some larger classification system? - or is simply setting a color per object nice and simple?

Define larger classification system. I would go for the colour per object though.

0 Likes

(BTolputt) #14

Well, there is the value/luminance suggestion of mine :wink:

I’d go with the palette concept myself. One can even use the same three-colour sets. It also suggests an alternate to my luminance idea. The three colours can be used for selected, deselected, and active object.

Per object, nice and simple. The whole point to colouring the wireframes is to allow the user to create their own way of ordering the scene. If you try adding your own classification on top, it kind of defeats the purpose.

That help?

0 Likes

(NinthJake) #15

Well brightness is a good indicator in my opinion. If it is possible to make the “regular” objects appear in a darker tone than the selected/grouped/linked/etc then that is a good way to quickly note which objects are what.

Another example would be doing it the “Max” way. Each object is assigned a random color from a palette that only excludes the “selected_color” which is white. Max does not have any visual indication if an object is grouped or not but could be resolved by simply reserving a special color for grouped objects. Max also allows the user to manually choose a color for the wireframe with no restrictions, the user is assumed capable of not screwing himself over by choosing colors that are the same as selected/grouped/linked/etc and I think it would be nice for us to have the same trust.

In any case a palette seems like a good idea. Having a simple palette for regular objects to choose from and having a special palette for “special” items is good enough. Also it should definitely be a color per object (that the user may change if he/she feels like it.

0 Likes

(quollism) #16

If we can only set hue/saturation, higher value for selected, highest value for active.

A palette could be workable, as long as the palette doesn’t run out.

Colour per object sounds good. If a new object starts with a random unused colour, even better.

0 Likes

(el_diablo) #17

I tried once to get the selected object to have ‘fatter’ outline, I think i remember it worked and was pretty nice visual feedback. I haven’t patched my version with the drawing code form that experiment though, i think it was a performance issue. The performance hit may be less now.

0 Likes

(FreeMind) #18

Could someone upload a build? I wanna see how this works :slight_smile:

0 Likes

(Sanne) #19

ideasman42, thank you very much for this initiative! I tried your patch and think it’s a good start, I like it overall.

Changing the viewport color is problematic for me, though. I feel that viewport color is a very personal thing, at least for me. I have set it to a medium grey, slightly bluish (#4A4F59). It’s very soothing to my eyes, I feel right at home and don’t have to think about it. When I turn on wire colors suddenly it’s black, it feels very alien to me and I don’t want to spend much time there. I understand why you did it and maybe it’s the only sensible way, maybe I just have to get used to it, but for me right now it doesn’t feel very inviting as a work environment.

I don’t have a solution, though, other than let us just choose the wire colors and trust that we don’t shoot ourselves in the foot. :slight_smile:

Will think about it some more.

0 Likes

(BTolputt) #20

I think if we’re going to allow the user to set the wireframe colours to their choice in the new “wireframe colour” mode, it makes sense for them to also choose the background colour for the mode as well. They get to choose it for the other modes, we’re giving them a choice in the new wireframe colours (if even only choosing the palette), but we’re forcing a dark background on them - seems a little odd.

Is it possible to have a themeable background colour for this mode, Campbell?

0 Likes