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

Announcements, requests and support regarding the Blender Indigo export script
Post Reply
12 posts • Page 1 of 1
User avatar
zurkdahool
Posts: 34
Joined: Thu Aug 27, 2015 12:14 am
Location: Germany, Berlin

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

Post by zurkdahool » Sat Sep 12, 2015 12:22 am

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?

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

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

Post by OnoSendai » Sat Sep 12, 2015 2:34 am

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.

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

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

Post by FakeShamus » Sat Sep 12, 2015 3:33 am

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.

User avatar
zurkdahool
Posts: 34
Joined: Thu Aug 27, 2015 12:14 am
Location: Germany, Berlin

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

Post by zurkdahool » Sat Sep 12, 2015 6:12 am

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...

User avatar
zurkdahool
Posts: 34
Joined: Thu Aug 27, 2015 12:14 am
Location: Germany, Berlin

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

Post by zurkdahool » Sun Sep 13, 2015 8:12 am

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...

User avatar
Oscar J
1st Place Winner
Posts: 2204
Joined: Sat Mar 31, 2012 3:47 am
Location: Gothenburg, Sweden
3D Software: Blender

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

Post by Oscar J » Sun Sep 13, 2015 8:18 am

Wow, clever! I think you're definitely not getting enough cred for the work you're doing here. Keep it up! :D

User avatar
Headroom
Indigo 100
Posts: 1058
Joined: Wed Aug 08, 2007 1:07 pm
Location: Spartanburg, SC, USA
Contact:

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

Post by Headroom » Sun Sep 13, 2015 2:12 pm

This is awesome! We really need to think about some kind of reward system for these efforts.


Sent from my iPad using Tapatalk
iMac 2.93 GHz Quad Core i7. 12 GB memory
ATI Radeon HD 5750M 1024 MB
OS X 10.10.3 Yosemite
Blender 2.72, Blendigo 3.8.25, Indigo 3.8.26

Trippy Lighting LLC - Colorful LED lighting systems
High Power RGB LED driver - Blog

User avatar
zurkdahool
Posts: 34
Joined: Thu Aug 27, 2015 12:14 am
Location: Germany, Berlin

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

Post by zurkdahool » Mon Sep 14, 2015 12:48 am

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 ;-)

User avatar
Headroom
Indigo 100
Posts: 1058
Joined: Wed Aug 08, 2007 1:07 pm
Location: Spartanburg, SC, USA
Contact:

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

Post by Headroom » Mon Sep 14, 2015 4:24 am

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
iMac 2.93 GHz Quad Core i7. 12 GB memory
ATI Radeon HD 5750M 1024 MB
OS X 10.10.3 Yosemite
Blender 2.72, Blendigo 3.8.25, Indigo 3.8.26

Trippy Lighting LLC - Colorful LED lighting systems
High Power RGB LED driver - Blog

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

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

Post by FakeShamus » Mon Sep 14, 2015 6:52 am

This is great. Exactly what I was thinking!

User avatar
zurkdahool
Posts: 34
Joined: Thu Aug 27, 2015 12:14 am
Location: Germany, Berlin

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

Post by zurkdahool » Tue Sep 15, 2015 9:31 am

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.

User avatar
yonosoy
Posts: 3430
Joined: Sat Dec 01, 2012 9:45 pm
Location: Heaven

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

Post by yonosoy » Tue Sep 15, 2015 7:07 pm

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.
"... nor 0.2 galaxys, nor 0.8 little chikens ..."

Post Reply
12 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 20 guests