<div dir="ltr">Hi Thomas,<br><br>great!, but what I meant is:<br>where do you set them? I checked the blender exporter and didn't see any flag set.<br>are they set automatically? or they need a manual checks.<br><br>cheers,<br>Mohamed Sakr</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 8:10 PM, Thomas Dinges <span dir="ltr"><<a href="mailto:blender@dingto.org" target="_blank">blender@dingto.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mohamed,<br>
<br>
grep is a Linux terminal command, that can be used to search files, in<br>
this case for a variable.<br>
Alternatively you can use an IDE or another tool of your choice.<br>
<br>
The flags are used in various places inside the kernel, to determine if<br>
we need certain things.<br>
<br>
Hope that helps.<br>
<br>
Best regards,<br>
Thomas<br>
<div class="HOEnZb"><div class="h5"><br>
Am 31.03.2016 um 18:36 schrieb Mohamed Sakr:<br>
> Hi Sergey,<br>
><br>
> after testing, I see colors are matching in the 2 branches, sorry this<br>
> was my fault.<br>
> but the unsolved question: do these flags do anything? I see they are<br>
> not touched anywhere.<br>
><br>
> cheers,<br>
> Mohamed Sakr<br>
><br>
> On 3/31/16, Mohamed Sakr <<a href="mailto:3dsakr@gmail.com">3dsakr@gmail.com</a>> wrote:<br>
>> Hi Sergey,<br>
>><br>
>> my branch is similar to yours, just some different stuff in the<br>
>> standalone part "exporter"<br>
>> I didn't understand what is grep?<br>
>><br>
>> cheers,<br>
>> Mohamed Sakr<br>
>><br>
>> On 3/31/16, Sergey Sharybin <<a href="mailto:sergey.vfx@gmail.com">sergey.vfx@gmail.com</a>> wrote:<br>
>>> Hi,<br>
>>><br>
>>> I can't tell you what could be wrong in your branch because it's nowhere<br>
>>> published and i can't give cleaner answer where the variables are used<br>
>>> than<br>
>>> grep will do it:<br>
>>><br>
>>> grep -wR "has_surface" .<br>
>>> grep -wR "has_surface_emission" .<br>
>>><br>
>>> and so on.<br>
>>><br>
>>><br>
>>> On Thu, Mar 31, 2016 at 5:26 PM, Mohamed Sakr <<a href="mailto:3dsakr@gmail.com">3dsakr@gmail.com</a>> wrote:<br>
>>><br>
>>>> Hi,<br>
>>>><br>
>>>> I wonder where are these flags used? Shader::has_surface,<br>
>>>> has_surface_emission, ...etc..<br>
>>>> the reason to ask:<br>
>>>> I checked my branch against Blender, the scene is pretty simple.<br>
>>>> 2 cubes which got only emission to surface, first cube is (255 50 0),<br>
>>>> second is (153 255 0)<br>
>>>><br>
>>>> inside Blender results appear correctly "same chosen color"<br>
>>>> inside my branch results appear wrong "for example with increased<br>
>>>> emission strength, values go toward 255 255 0 .."<br>
>>>><br>
>>>> any idea if these flags are responsible for this? or anything else<br>
>>>> that is missing in my Shader?<br>
>>>> I debugged input values and they are correct.<br>
>>>><br>
>>>> cheers,<br>
>>>> Mohamed Sakr<br>
>>>> _______________________________________________<br>
>>>> Bf-cycles mailing list<br>
>>>> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
>>>> <a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
>>>><br>
>>><br>
>>><br>
>>> --<br>
>>> With best regards, Sergey Sharybin<br>
>>><br>
> _______________________________________________<br>
> Bf-cycles mailing list<br>
> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
> <a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br></div>