defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Make engine debug draw match the editor #2753

Open subsoap opened 5 years ago

subsoap commented 5 years ago

Editor's debug draw for collision shapes is much better

Editor uses outline with less drawn solid makes stuff easier to see Editor uses a different color for different groups

2019-09-22 16_05_47-Pixcade Chick - Defold Editor 2 0 2019-09-22 16_05_36-Pixcade Chick - Defold Editor 2 0

mathiaswking commented 5 years ago

Rendering groups in separate colors is a good idea.

You can set the "less drawn solid" by setting physics..debug_alpha in the preferences. (And yes, we can move it down from 0.9 as default to what the editor uses (does it use that variable though? @matgis-king )

matgis-king commented 5 years ago

The editor uses a hardcoded alpha of 0.1 for the solids, increased to 0.3 when selected.

mathiaswking commented 5 years ago

Ok, so: Engine:

Editor:

matgis-king commented 5 years ago

I'd prefer not to respect the debug_alpha setting in the editor. Might be difficult for the editor to use a user-specified setting for this since the alpha is augmented during selection.

subsoap commented 5 years ago

Could the solid border be added too? That looks better in the editor as well. 😊

2019-09-23 04_59_39-Pixcade Chick

mathiaswking commented 5 years ago

@matgis-king perhaps not a crucial feature to support physics-debug_alpha in the editor, but I think it's fairly common to allow users to tweak their colors and alpha settings?