jMonkeyEngine / sdk

The jMonkeyEngine3 Software Development Kit based on Netbeans
BSD 3-Clause "New" or "Revised" License
311 stars 100 forks source link

Design and implement components to edit material values (vectors etc) #600

Open tonihele opened 2 weeks ago

tonihele commented 2 weeks ago

Design and implement components to edit material values (vectors etc). I think we are mainly missing editors for matrices and vectors. And int & float arrays and array vectors. It is difficult for a new comer to understand how to input these values. Like the decimal separator is always "." and what is a vector separator etc...

Challenge is to design components that provide ease to use but also efficient for those who'd just prefer to write the value quickly.

These are distributed from com.jme3.gde.materials.multiview.widgets.WidgetFactory.

neph1 commented 2 weeks ago

Would make it easier if we could get some reference design. How do others do it?

tonihele commented 2 weeks ago

Yes, that is a very good question. Maybe vectors could use similar to the colors. Separate text fields for the separate vector components. Also the very least we could add validation to the components. Like floats are supposed to be given with "." separator and all that. Prevent wrong inputs and guide for the right format. Also for vector if we end up having it in single input.

I did look about masks, but I dont think those are usable in our cases. Shame.

On Tue, 30 Apr 2024, 12:30 Rickard Edén, @.***> wrote:

Would make it easier if we could get some reference design. How do others do it?

— Reply to this email directly, view it on GitHub https://github.com/jMonkeyEngine/sdk/issues/600#issuecomment-2084822842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7VJPX5AK6G4GZWNRC2C3LY75QCFAVCNFSM6AAAAABG5BSLL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUHAZDEOBUGI . You are receiving this because you authored the thread.Message ID: @.***>

neph1 commented 2 weeks ago

Here's Unity for some inspiration. Screenshot from 2024-05-01 07-25-42

Having sliders for floats is not a bad idea. There's plenty of space. Maybe make inserting values into Vector4f manually an extra step. They take up the most space.

neph1 commented 2 weeks ago

I've begun with a slider for floats that are bound 0-1.

Edit: So regarding this. Is it really just Metallic, Roughness, Glossiness? Maybe not worth it.

neph1 commented 1 week ago

Should we just remove the option to set values for the color? The selector allows fine grained editing of RGB values.

image