<div dir="ltr">Hi there, <br><br>   So, I have been fiddling around with Blender&#39;s OSL for quite a while now. (Programmers art mainly :P  <a href="http://www.freeimagehosting.net/65iry">http://www.freeimagehosting.net/65iry</a> ) <br>
   and tried to figure out possible ways to deal with the problems.<br><br>1). metadata:- A possible way to do it would be to define our own keyword say  &quot;meta&quot;. that works like this  <br>  <br><span class="">   int value =  4  meta range 0 10 tip &quot;value betwwe 0-10&quot;,<br>
<br> something of that sort. but i&#39;m not sure if acceptable since it would violate OSL coding standard. <br></span><br><span class="">2). as for the texture. I think OSL already supports it without having to define another node altho that can also workout. <br>
</span>     <a href="https://www.youtube.com/watch?v=V5N2rnFtSlw">https://www.youtube.com/watch?v=V5N2rnFtSlw</a><br>  can&#39;t really figure out what is exactly needed in this. <br><br>3). Performance improvement:- I think that&#39;s the thing we should be focusing on. A possible way to do that would be to allow OSL to use GPU along with CPU. it could be achieved using CUDA/OpenCL/OpenGL calls. <br>
<br><br>Apart from these issues I can&#39;t really find any other feature that needs to be added to OSL. If there is please do let me know. <br>Would like to know if i&#39;m heading right.<br><br>Oh and one thing. I was able to build Blender with OSL under Release mode. Debug mode somehow crashes everytime. <br>
<br>--Naman<br><br><br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 7, 2014 at 11:50 PM, Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div class="h5"><br>
On Fri, Mar 7, 2014 at 9:23 AM, Naman Gupta &lt;<a href="mailto:naman22forever@gmail.com">naman22forever@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m Naman, final year undergrad majoring in Computer Science studying at<br>
&gt; MIET, Meerut, India.<br>
&gt; I&#39;m interested in working for blender this summer. I&#39;d like to work on OSL<br>
&gt; support . What I can makeout from the idea page is that, blender doesn&#39;t<br>
&gt; have all the features of OSL. like metadata, a proper way to load tex coord?<br>
&gt; and improved performance?<br>
&gt;<br>
&gt; These are the links I have read so far<br>
&gt; <a href="http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/OSL" target="_blank">http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/OSL</a><br>
&gt; <a href="https://raw.github.com/imageworks/OpenShadingLanguage/master/src/doc/osl-languagespec.pdf" target="_blank">https://raw.github.com/imageworks/OpenShadingLanguage/master/src/doc/osl-languagespec.pdf</a><br>
&gt;<br>
&gt;   I have successfully compiled the source code with OSL (win7, vs2008). :D<br>
&gt;   I&#39;d like to know who be the right guy(IRC handle?) to discuss it.<br>
&gt;   Also, are there any other material that I have to go through?<br>
<br>
</div></div>There&#39;s a few people on IRC that know about OSL integration, me<br>
(brecht), DingTo, lukas_t and dfelinto. You can ask here on the<br>
mailing list as well if you can find the right people online.<br>
<br>
I think you found the most important links. The other relevant things are:<br>
* Cycles developer docs:<br>
<a href="http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles" target="_blank">http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles</a><br>
* Rest of the Cycles manual.<br>
* To see what people are doing with OSL now you can read the OSL forum<br>
on <a href="http://blenderartists.org/" target="_blank">http://blenderartists.org/</a><br>
* <a href="http://www.openshading.com/" target="_blank">http://www.openshading.com/</a><br>
<br>
In general it helps if you are familiar with rendering algorithms as<br>
you can find in e.g. the PBRT book, though it&#39;s not that much needed<br>
for OSL.<br>
<br>
As for the contents of the project, the general goal would be to<br>
improve OSL integration to be more useful.<br>
<br>
* The metadata support would to make it possible to define<br>
input/output socket entirely from the metadata in the OSL shader<br>
(min/max, tooltips, strings as filepaths, etc.).<br>
* The texture loading problem is that Cycles will only load e.g. UV<br>
maps if they are needed by the nodes. However OSL shaders have no way<br>
to specify in advance that they will use such an attribute, so they<br>
can only use it if some other builtin node already asked for it to be<br>
loaded. I&#39;m not sure what the best solution would be, but this should<br>
be solved somehow.<br>
* When using OSL performance is currently slower than when it&#39;s off,<br>
ideally it would become roughly equal. Getting it equal may be aiming<br>
a too high, but we can probably do better than we do now.<br>
<br>
Maybe other people reading this can suggest things, or you can read<br>
the blenderartists forum to find issues that users are running into<br>
and think of solutions for them. The 3 things mentioned are not<br>
necessarily the most important ones, just some things that I could<br>
think of off the top of my head.<br>
<br>
Brecht.<br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</blockquote></div><br></div>