Page 1 of 1

Design question: de-couple material from medium...

Posted: Sat Sep 12, 2015 12:22 am
by zurkdahool
Hi,

i started to de-couple the medium properties panel from the material tab. I moved the medium definition to the world panel and make a selection box in the Material panel.

World Panel:
decouple_world.png
Material Panel:
decouplematerial.png
It is the first draft which works well for me (inclusive the export). I will move the medium definition panel in the future into a template_list which is much more comfortable...

Some questions:

- The indigo demo (full version) always show an error: dermis / epidermis currently not currently supported... I used the demo version because i only have a RT license. Is dermis / epidermis supported in full version? If so i am not able to test it...

- Should SSS options placed into the medium panel or the material-(tab)? As i understood SSS is an option for a medium, not a material...

- Any other suggestions about the UI?

Re: Design question: de-couple material from medium...

Posted: Sat Sep 12, 2015 2:34 am
by OnoSendai
zurkdahool wrote: Some questions:

- The indigo demo (full version) always show an error: dermis / epidermis currently not currently supported... I used the demo version because i only have a RT license. Is dermis / epidermis supported in full version? If so i am not able to test it...

- Should SSS options placed into the medium panel or the material-(tab)? As i understood SSS is an option for a medium, not a material...

- Any other suggestions about the UI?
Dermis/epidermis is disabled in full version as well.

SSS is definitely medium properties. Where to display it best is a UI issue however.

Re: Design question: de-couple material from medium...

Posted: Sat Sep 12, 2015 3:33 am
by FakeShamus
I think placing the medium definition in the world tab is kind of confusing. keeping it associated with the material tab but somehow allowing for various materials to re-use a medium once defined would be better. but the capabilities of python are beyond my full understanding, so I don't know what's doable there.

Re: Design question: de-couple material from medium...

Posted: Sat Sep 12, 2015 6:12 am
by zurkdahool
It should be possible to place it into material tab but to change a medium (which can be assigned to many materials (1:n) ) may become also confusing? Hmmm, have to think about it... *confusing* :-)

I will check if it's possible to code it into material tab...

Re: Design question: de-couple material from medium...

Posted: Sun Sep 13, 2015 8:12 am
by zurkdahool
FakeShamus wrote:I think placing the medium definition in the world tab is kind of confusing. keeping it associated with the material tab but somehow allowing for various materials to re-use a medium once defined would be better. but the capabilities of python are beyond my full understanding, so I don't know what's doable there.
Agree! I think that makes more sense:
decouple_material.png
Nice and easy, huh?! ;-)

The medium parameters and SSS options will be placed under the 'Medium add / remove' widget (above Absorption Layer). It is currently work in progress and not on the screenshot...

To place the medium widget into material tab is more work and a little bit tricky (storing global properties and so on ...). Hopefully it will work...

Re: Design question: de-couple material from medium...

Posted: Sun Sep 13, 2015 8:18 am
by Oscar J
Wow, clever! I think you're definitely not getting enough cred for the work you're doing here. Keep it up! :D

Re: Design question: de-couple material from medium...

Posted: Sun Sep 13, 2015 2:12 pm
by Headroom
This is awesome! We really need to think about some kind of reward system for these efforts.


Sent from my iPad using Tapatalk

Re: Design question: de-couple material from medium...

Posted: Mon Sep 14, 2015 12:48 am
by zurkdahool
Good news: It will work and i am finished with UI work / implementation
Bad news: takes a couple of days to modify the export...

Overall the framework and Blender API are really good and makes now more sense to me after digging in the code. I think i will be faster in the future ;-)

BTW. You can download current implementation and get a feeling:
https://github.com/Zurkdahool/blendigo/tree/decouple
Be warned: developing version and export will not work ;-)

Re: Design question: de-couple material from medium...

Posted: Mon Sep 14, 2015 4:24 am
by Headroom
There is no bad news here!
Your efforts are truly appreciated and I am very glad you stepped in.

Since Doug Hammond, the original author of Blendigo left well over a year ago ( or has it been two or more ?) user Fused has done his best to keep the exporter up to date and while it works OK you can see there is demand for additional features and just a general overhaul.

So if it takes you a day or two, or a week or two, or a month or two to make something work, that'll be fine.




Sent from my iPad using Tapatalk

Re: Design question: de-couple material from medium...

Posted: Mon Sep 14, 2015 6:52 am
by FakeShamus
This is great. Exactly what I was thinking!

Re: Design question: de-couple material from medium...

Posted: Tue Sep 15, 2015 9:31 am
by zurkdahool
Done... export is working. Medium is now total decoupled (also most of the code)...

Before making a pull request to official blendigo tree in the next days i will fix some minor issues and do some testing (help are welcome!)

I have done some additional UI work:
blendigo_materialpanel.png
(1) Material Type now directly in MaterialButtonPanel (not in extra widget)
(2) Enum Button instead of Menu (fast and easy access - i like to 'push that button' ;-) )
(3) Slider for some values
(4) Dependencies will greyed out (beta)
(5) Alerting ...

Hope you like it.

Re: Design question: de-couple material from medium...

Posted: Tue Sep 15, 2015 7:07 pm
by yonosoy
Hi Zurkdahool.
Just to advise you that in blender the atmosphere medium needs a center of reference in order to work.
This center rules the way atmosphere fill the body that enclose the material (but usually this is related with the center of the geometry used; a sphere). The atmosphere medium starts at 6378135 meters from the center of "Earth" and extents over 80 km. Just take a look at the GUI in Indigo.
Good work, so many thanks.