Hi,<br><br>I probably wont be able to be online this sunday meeting.<br>Anyway my SoC plans for this first week are:<br><br>===comming week===<br>    *find the bug that makes some black dots.. before I only changed the API but it seems some bugs appeared.. I would like to have those sorted out before continuing. I already spend some time trying. but its kinda hard to debug it.<br>
   *plugging the bvh-tree available on blenlib as a tree structure<br>   *if time allows add also a raytrace structure to instance-support<br><br>===questions===<br> none<br><br>===schedule===<br> I am still a under school works, but hopefull the advanced I gave before will allow me not to get behind schedule.<br>
<br><br><div class="gmail_quote">2009/5/11 Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brecht@blender.org">brecht@blender.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi André,<br>
<div class="im"><br>
On Mon, 2009-05-11 at 16:12 +0100, André Pinto wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; ==Questions==<br>
&gt; this week I have been coding a more generic raytrace api and I have<br>
&gt; some questions:<br>
&gt;<br>
&gt; * In the new files (rayobject.h, rayobject*.c), I copied the GPL<br>
&gt; license block from other files and changed copyright to &quot;2009 Blender<br>
&gt; Foundation&quot;. I also set the properties svn:keywords and svn:eol-style.<br>
&gt; Is this all that needs to be done for created files?<br>
&gt; And Is there any sample GPL licence block? i noticed those sligtly<br>
&gt; change between files.<br>
<br>
</div>I don&#39;t think we have a policy on svn properties and the license block<br>
details, just do the same as another file in the directory.<br>
<div class="im"><br>
&gt; * The exported functions from render, should all started with RE_ ?<br>
&gt; That means the functions I added should be:<br>
&gt; RE_rayobject_create/raycast/done/add..<br>
<br>
</div>Yes, use the RE_ prefix.<br>
<div class="im"><br>
&gt; * Is it safe to assume that all MEM_callocN are aligned to 4bytes?<br>
<br>
</div>Yes (though obviously make a comment in the raytracing code that you<br>
rely on this).<br>
<div class="im"><br>
&gt; ==API details==<br>
&gt; Details about the ray trace design implementation<br>
&gt; (render/intern/include/rayobject.h):<br>
&gt;<br>
&gt; I denoted RayObject as everything where its possible to raycast<br>
&gt; including a single face or a complex data structure.<br>
&gt; Thus allowing to create compound structures (eg.: a bvh of octrees<br>
&gt; (like 1 octree per object)).<br>
&gt;<br>
&gt; In order to allow an eficient type-detectation mechanism, all<br>
&gt; RayObjects are aligned to 4bytes, leaving 2bits of adress to determine<br>
&gt; the type, so far 2 types exist:<br>
&gt;<br>
&gt; RayFace - struct with coords, object and face.<br>
&gt; RayObject - struct to an abstract raytrace aceleration, with callbacks<br>
&gt; to generic stuff like: add faces, free struct and raycast<br>
&gt;<br>
&gt; All callbacks like get coordinates/transform_coords, check_hit, where<br>
&gt; removed for now.. as the functionality of those will be coded as<br>
&gt; needed in a better way.<br>
&gt;<br>
&gt; For now only API and Isect structure were modified.<br>
&gt; Daniel Salazar(ZanQdo) reported an 9% improve on his quad core2  :)<br>
&gt; At the moment only shadow rays work/were tested.<br>
<br>
</div>OK, design sounds good, and 9% is a nice start :).<br>
<br>
Brecht.<br>
<br>
<br>
_______________________________________________<br>
Soc-2009-dev mailing list<br>
<a href="mailto:Soc-2009-dev@blender.org">Soc-2009-dev@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/soc-2009-dev" target="_blank">http://lists.blender.org/mailman/listinfo/soc-2009-dev</a><br>
</blockquote></div><br>