Page 1 of 1

Lego brick

Posted: Fri Sep 26, 2008 4:23 am
by Fencer
Hi everbody,

I tried a few settings to find a material for a Lego brick (correct word?) but I'm not quite satisfied with my results.
so I ask everybody here if she/he can help me

greetings
Fencer

Posted: Fri Sep 26, 2008 4:38 am
by Kram1032
Probably.
Though, you should post pics of your current material(s), so that we can tell you "use more red", "use less blue", "turn down the IoR" or "turn up your exponent" or what so ever ;)

A direct guess doesn't work too good, usually. Show your results and we might be able to help.

Posted: Fri Sep 26, 2008 5:21 am
by Fencer
ok here we are 8)

Posted: Fri Sep 26, 2008 5:43 am
by PureSpider
That's what I've come up with (though I did that test some time ago)... Is that what you'd like to have?

Posted: Fri Sep 26, 2008 5:57 am
by Fencer
yes thx. what were your settings?
:D

Posted: Fri Sep 26, 2008 5:57 am
by PureSpider
Will have to search the scene again... will do that later

€dit: Found it... here you go... but don't ask me which mat is which color ^^

Code: Select all

    <material>
        <name>Material00</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.651 0.098 0.098</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material01</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>1 0.498 0.2</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material02</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.098 0.4 0.098</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material04</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0 0.2 0.698</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material05</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.2 0.4 0.898</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material06</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.8 0.8 0</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material07</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.949 0.949 0.949</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material08</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.329 0.298 0.298</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material09</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.2 0.2 0.2</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material10</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.4 0.2 0.2</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material13</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.898 0.698 0.2</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <medium>
        <name>MedMaterial18</name>
        <precedence>10</precedence>
        <basic>
            <ior>1.00000</ior>
            <cauchy_b_coeff>0.00000</cauchy_b_coeff>
            <absorption_coefficient_spectrum>
                <rgb>
                    <rgb>10 10 5.02</rgb>
                    <gamma>1</gamma>
                </rgb>
            </absorption_coefficient_spectrum>
        </basic>
    </medium>
    <material>
        <name>Material18</name>
        <specular>
            <internal_medium_name>MedMaterial18</internal_medium_name>
            <transparent>true</transparent>
        </specular>
    </material>
    <medium>
        <name>MedMaterial21</name>
        <precedence>10</precedence>
        <basic>
            <ior>1.00000</ior>
            <cauchy_b_coeff>0.00000</cauchy_b_coeff>
            <absorption_coefficient_spectrum>
                <rgb>
                    <rgb>1.02 1.02 1.02</rgb>
                    <gamma>1</gamma>
                </rgb>
            </absorption_coefficient_spectrum>
        </basic>
    </medium>
    <material>
        <name>Material21</name>
        <specular>
            <internal_medium_name>MedMaterial21</internal_medium_name>
            <transparent>true</transparent>
        </specular>
    </material>
    <material>
        <name>Material22</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.549 0.549 0.549</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material23</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.8 0.8 0.698</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>
    <material>
        <name>Material27</name>
        <phong>
            <ior>1.018</ior>
            <diffuse_albedo_spectrum>
                <rgb>
                    <rgb>0.8 0.8 0.8</rgb>
                    <gamma>2.2</gamma>
                </rgb>
            </diffuse_albedo_spectrum>
            <exponent>124.452</exponent>
        </phong>
    </material>

Posted: Fri Sep 26, 2008 6:33 am
by Kram1032
I see...
you seem to have used a diffuse...
use a specular, turn up red and green a bit (green just a tad) and use pretty shallow IoR and medium Exponent... (1.2 IoR and 1000 Exponent or so) That's a first idea :) - maybe even lower IoR... and if the bricks are supposed to look entirely new, therefore higher exponent.)

@PS: O.o Why didn't you use ONE material per lego-material? xD Looks pretty messy like that (the code)

Posted: Fri Sep 26, 2008 6:42 am
by PureSpider
I did ;)
It's all the LEGO colors existing :D

Posted: Fri Sep 26, 2008 8:02 am
by Kram1032
you know what? it's the diffuse light! That's the problem... those mats are phongs... You can't see that they are. They all look diffuse...

Posted: Fri Sep 26, 2008 8:30 am
by zsouthboy
Image

I used phong with medium IOR and high exponent. I can look up the specifics when I get home.

Posted: Fri Sep 26, 2008 9:41 am
by Fencer
first, thank you all.
@zsouthboy this would be nice
greetings and good night fencer

Posted: Sat Sep 27, 2008 2:02 am
by Kram1032
Not seeing lines between one row of bricks and the other bugs my eyes somewhat xD
Though, that's a far better example, as light conditions make it easier for the eye to decide, whether the colour is correct or not :)

Posted: Sat Sep 27, 2008 3:46 am
by pixie
What is a "medium" ior!? :P