On Tue, Jun 5, 2018 at 7:29 AM, Sreyansh Jain <sreyanshjai...@gmail.com>
wrote:
> Okay, let me look into it.
>
> I've started with METABALL primitive, although it is incomplete I believe
> (metaball method). Should I retain both new and old code (shootalgo=2 and
> shootalgo=3) or just one in OpenCL?
>
For starters just pick one of those. You can start with the default (new)
code.
> Also, how do I take input/define *ap->a_onehit *, *rp->r_min* and *rp->r_max
> *in OpenCL?
>
You can start by just assuming that ap->a_onehit is TRUE. If you do need
that in the rendering phase, you can pass it as a parameter to the
respective kernels in
https://svn.code.sf.net/p/brlcad/code/brlcad/trunk/src/librt/primitives/primitive_util.c:clt_frame()
which is called in
https://svn.code.sf.net/p/brlcad/code/brlcad/trunk/src/rt/do.c:clt_run().
As for rp->r_min, and rp->r_max IIRC those are the rmin,rmax bounds
determined in rt_in_rpp() in rt.cl. You can get their values from
bounds->p_min,bounds->p_max in rt.cl:shootray(). You'll have to pass those
to the shot() function and then the respective METABALL shot function.
Regards,
-vasc
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel