colored wireframe #33817

Closed
opened 2013-01-09 19:11:15 +01:00 by Fredrik Hansson · 36 comments

%%%not much to say about this one.
it adds a checkbox under the object display to switch on colored wireframe per object and uses the object color right beside it for what color its supposed to be

and yes i know there has been 2 other patches that does this but none of them seem to work so wrote my own much simpler one%%%

%%%not much to say about this one. it adds a checkbox under the object display to switch on colored wireframe per object and uses the object color right beside it for what color its supposed to be and yes i know there has been 2 other patches that does this but none of them seem to work so wrote my own much simpler one%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%any particular reason this is a per-object setting, rather than a viewport setting?

The wireframe color feature I want is:

  • viewport toggle to "draw wireframes/faces in ObColor"
  • automatically "flip" white ObColor to black (because white is the default ObColor)
  • when using ObColors, clamp to 1/2 intensity, so they never seem "bright" and confuse selection/active colors

Thoughts?
%%%

%%%any particular reason this is a per-object setting, rather than a viewport setting? The wireframe color feature I want is: - viewport toggle to "draw wireframes/faces in ObColor" - automatically "flip" white ObColor to black (because white is the default ObColor) - when using ObColors, clamp to 1/2 intensity, so they never seem "bright" and confuse selection/active colors Thoughts? %%%

%%%2 reasons probably firstly it gave more flexibility to the user.
secondly seemed easiest to implement without making it to messy.

as for making the default object color black the value is also used for the material setting to use
that color setting for the diffuse+specular of the material.
alsp clamping the color might seem like a good idea at first but with custom themes you might have
someone with a custom theme where the selection/active colors are dark instead and white wireframes.

i personally only use this if i need to do some retopology work where its beneficial to have
a different color for the highpoly object so its easier to see the new topologys wires.%%%

%%%2 reasons probably firstly it gave more flexibility to the user. secondly seemed easiest to implement without making it to messy. as for making the default object color black the value is also used for the material setting to use that color setting for the diffuse+specular of the material. alsp clamping the color might seem like a good idea at first but with custom themes you might have someone with a custom theme where the selection/active colors are dark instead and white wireframes. i personally only use this if i need to do some retopology work where its beneficial to have a different color for the highpoly object so its easier to see the new topologys wires.%%%

%%%+1 agreed, per-object wireframe color seems useful. one very nice use for per-object wireframe color which seems ideal... custom coloring "non-rendered" object(s) which are used as modifier arguments, deform cages, etc. so they can remain visible but also be clearly distinguished.

I agree on your point about clamping. It seems hard to find a solution which automatically keeps ObColor in good ranges given any possible theme choices.


Here are some thoughts about viewport-wide wireframe color (which can be a separate but related patch)

A viewport-wide wireframe-color toggle seems a commonly requested feature for managing large scenes, and one which available in other products. It seems worthwhile to have both viewport-wide and per-object wireframe (and solid) color..

Blending these ideas, another patch could consider viewport settings:

  • colored wireframes (never, always, per-object)
  • colored solids (never, always, per-object)
  • colored objects receive (ObColor, auto-color)

The first two toggles would allow the user to turn on/off custom colors for wire/solid display, while the last would allow them to choose between using ObColor, and using theme-configured (or calculated) auto-colors.
%%%

%%%+1 agreed, per-object wireframe color seems useful. one *very* nice use for per-object wireframe color which seems ideal... custom coloring "non-rendered" object(s) which are used as modifier arguments, deform cages, etc. so they can remain visible but also be clearly distinguished. I agree on your point about clamping. It seems hard to find a solution which automatically keeps ObColor in good ranges given any possible theme choices. ------ Here are some thoughts about viewport-wide wireframe color (which can be a separate but related patch) A viewport-wide wireframe-color toggle seems a commonly requested feature for managing large scenes, and one which available in other products. It seems worthwhile to have both viewport-wide and per-object wireframe (and solid) color.. Blending these ideas, another patch could consider viewport settings: - colored wireframes (never, always, per-object) - colored solids (never, always, per-object) - colored objects receive (ObColor, auto-color) The first two toggles would allow the user to turn on/off custom colors for wire/solid display, while the last would allow them to choose between using ObColor, and using theme-configured (or calculated) auto-colors. %%%

%%%Hey Fred, could you give a quick walk through of how to install the patch? Thanks.%%%

%%%Hey Fred, could you give a quick walk through of how to install the patch? Thanks.%%%

%%%Any chance you could make the colored wireframe into an addon?%%%

%%%Any chance you could make the colored wireframe into an addon?%%%

%%%updated the patch for revision 60157.
Rob: should be easier to add the patch yourself now. with "svn patch coloredwireframe60157.patch" and building as to the guide on the wiki http://wiki.blender.org/index.php/Dev:Doc/Building_Blender
as for making this an addon instead not sure if that is even possible since it do need changes to the drawing code.%%%

%%%updated the patch for revision 60157. Rob: should be easier to add the patch yourself now. with "svn patch coloredwireframe60157.patch" and building as to the guide on the wiki http://wiki.blender.org/index.php/Dev:Doc/Building_Blender as for making this an addon instead not sure if that is even possible since it do need changes to the drawing code.%%%

%%%Thank you for taking the time to reply and explain.%%%

%%%Thank you for taking the time to reply and explain.%%%

Added subscriber: @BartekMoniewski

Added subscriber: @BartekMoniewski
Member

Added subscriber: @GaiaClary

Added subscriber: @GaiaClary
Member

I played a bit with this patch and i found it useful for debugging meshes. Here are 2 screenshots:

Image4.png Image7.png

Which lets you better see which parts of the wireframe belong to which mesh.

However it is a bit tedious to define a color:

  • When i define the color for an object, the object is selected and i can see the color only when the object is deselected. That is a bit annoying but i have no better idea how to improve that.
  • every time when i want a wireframe to be colored for debugging i have to define the color. hence i rarely can get 2 meshes to display the same color (if i wanted that to visualise differnet groups of objects for example). Therefore would like to add something similar to what we have for coloring bone groups. Then users could create color categories and then assign a category to an object (or a group) as needed.
I played a bit with this patch and i found it useful for debugging meshes. Here are 2 screenshots: ![Image4.png](https://archive.blender.org/developer/F80191/Image4.png) ![Image7.png](https://archive.blender.org/developer/F80193/Image7.png) Which lets you better see which parts of the wireframe belong to which mesh. However it is a bit tedious to define a color: - When i define the color for an object, the object is selected and i can see the color only when the object is deselected. That is a bit annoying but i have no better idea how to improve that. - every time when i want a wireframe to be colored for debugging i have to define the color. hence i rarely can get 2 meshes to display the same color (if i wanted that to visualise differnet groups of objects for example). Therefore would like to add something similar to what we have for coloring bone groups. Then users could create color categories and then assign a category to an object (or a group) as needed.

Added subscriber: @sebastian_k

Added subscriber: @sebastian_k

I do like the idea of custom wireframe colors a lot. This patch only overrides the color of not active or selected object, so you still get the info about selection, active grouped, etc. In complex scenes this helps to distinguish between objects and definitely helps to keep the orientation while modeling.
Using the object color setting also makes a lot of sense to me.

I do like the idea of custom wireframe colors a lot. This patch only overrides the color of not active or selected object, so you still get the info about selection, active grouped, etc. In complex scenes this helps to distinguish between objects and definitely helps to keep the orientation while modeling. Using the object color setting also makes a lot of sense to me.

Added subscriber: @richardh

Added subscriber: @richardh

I applied this on Blender 2.72 and got a LITE version to work. It was very useful.

Patch does NOT apply to 2.73.

I applied this on Blender 2.72 and got a LITE version to work. It was very useful. Patch does NOT apply to 2.73.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

This feature has been added to the gooseberry branch and will be implemented using theme colors before going into master.

rejecting this patch since we're planning to do this a bit more comprehensively.

This feature has been added to the gooseberry branch and will be implemented using theme colors before going into master. rejecting this patch since we're planning to do this a bit more comprehensively.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Campbell Barton self-assigned this 2015-03-05 10:13:30 +01:00

Any timeline on the implementation in Gooseberry?

Any timeline on the implementation in Gooseberry?

@richardh, not at the moment.

@richardh, not at the moment.

Added subscriber: @MaVCArt

Added subscriber: @MaVCArt

Since the last update to this was over two months ago, I would very much like to hear if any update on this is available - colored wireframes would be very useful indeed :)

Since the last update to this was over two months ago, I would very much like to hear if any update on this is available - colored wireframes would be very useful indeed :)

Added subscriber: @HartmutDoering

Added subscriber: @HartmutDoering

Hi,
i work on an architectural scene with a lot of rectangular meshes right now.
To not be able to distinguish all the meshes in wireframe-mode makes doing this project with blender to a real struggle.
I need to work in wireframe because i need to align meshes between meshes, also booleans i cut doors with and such.

After working 4-5 hours like that, clicking endlessly to find the right mesh, switching constantly between wire and solid mode to check, moving the camera +50% of the worktime to see if the right inner wall is selected i have severe headaches.

I never wanna complain because blender is free so please don't get me the wrong way, but i am so exhausted after 4-5 hours doing this project without wireframe colors that i have to switch this project over to max if there is no way. I just don't see a way to be able to finish this project in time without this feature.
Is there a chance this feature is coming in a foreseeable future? Please say yes guys because i would love to do such projects in Blender with Cycles. It is my first photoreal attempt in Blender. As someone who learned on V-Ray, i would love to see how far i can push Cycles in terms of realism. Also if Blender would get this feature i could move over all my architectural projects because this missing feature it is the only thing left that lets me stay in max with that type of projects.

If i would be able to, i had done it myself, but sadly when it comes to programing i totally hit a wall. I can install plug-ins if i have a 1-2-3 tutorial but sadly code still looks wondrously to me.

Hi, i work on an architectural scene with a lot of rectangular meshes right now. To not be able to distinguish all the meshes in wireframe-mode makes doing this project with blender to a real struggle. I need to work in wireframe because i need to align meshes between meshes, also booleans i cut doors with and such. After working 4-5 hours like that, clicking endlessly to find the right mesh, switching constantly between wire and solid mode to check, moving the camera +50% of the worktime to see if the right inner wall is selected i have severe headaches. I never wanna complain because blender is free so please don't get me the wrong way, but i am so exhausted after 4-5 hours doing this project without wireframe colors that i have to switch this project over to max if there is no way. I just don't see a way to be able to finish this project in time without this feature. Is there a chance this feature is coming in a foreseeable future? Please say yes guys because i would love to do such projects in Blender with Cycles. It is my first photoreal attempt in Blender. As someone who learned on V-Ray, i would love to see how far i can push Cycles in terms of realism. Also if Blender would get this feature i could move over all my architectural projects because this missing feature it is the only thing left that lets me stay in max with that type of projects. If i would be able to, i had done it myself, but sadly when it comes to programing i totally hit a wall. I can install plug-ins if i have a 1-2-3 tutorial but sadly code still looks wondrously to me.

Added subscriber: @manuelmuzzurru

Added subscriber: @manuelmuzzurru

hello

i need this feature colored wireframe in blender internal..
how i can do it..?

hello i need this feature colored wireframe in blender internal.. how i can do it..?

Added subscriber: @Morbitron

Added subscriber: @Morbitron

Added subscriber: @RUben

Added subscriber: @RUben

Added subscriber: @kuzlovsky

Added subscriber: @kuzlovsky

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Hello,

I wonder if Barton misunderstood what this patch is about. Themes are already in blender, but themed colors allow you to set only the single global wireframe color.

This patch allows you to have a wireframe color per object, i.e. you can have N colors in your 3D view.

Regards,
Joe

Hello, I wonder if Barton misunderstood what this patch is about. Themes are already in blender, but themed colors allow you to set only the single global wireframe color. This patch allows you to have a wireframe color per object, i.e. you can have N colors in your 3D view. Regards, Joe

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

There was no misunderstanding, at some point there was a plan to add multiple theme colors for wireframes and not just have a single one, and then let you select which one to use per object.

Regardless, please leave it to developers to decide which reports to close or reopen.

There was no misunderstanding, at some point there was a plan to add multiple theme colors for wireframes and not just have a single one, and then let you select which one to use per object. Regardless, please leave it to developers to decide which reports to close or reopen.

Hello,

OK I agree this to be closed if the feature was understood.

I have found a lot of requests for this and implementations as well. I would like to link here another patch Color Wireframe (option) from blender developer Campbell Barton in case anybody wants to build blender with this feature.

Joe

Hello, OK I agree this to be closed if the feature was understood. I have found a lot of requests for this and implementations as well. I would like to link here another patch [Color Wireframe (option)](https://developer.blender.org/D458) from blender developer Campbell Barton in case anybody wants to build blender with this feature. Joe

For anyone interested in patching blender 2.79-r1 here is the updated patch: colored_wireframe.patch.

Also attaching a screenshot colored_wireframe.png to show how it works (just need to tick the Colored Wire checkbox).

The developer.blender.org/D458 fails with the 2.79-r1 code.

Joe

For anyone interested in patching blender 2.79-r1 here is the updated patch: [colored_wireframe.patch](https://archive.blender.org/developer/F3559928/colored_wireframe.patch). Also attaching a screenshot ![colored_wireframe.png](https://archive.blender.org/developer/F3559975/colored_wireframe.png) to show how it works (just need to tick the Colored Wire checkbox). The developer.blender.org/D458 fails with the 2.79-r1 code. Joe
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
15 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#33817
No description provided.