[julia-users] Re: raytracing in julia

2016-04-06 Thread jw3126
Thanks for the help offer! It is good to have something boost.julia style. 
At the moment it looks like I will not have enough time to wrap FireRays 
though.


On Friday, March 25, 2016 at 2:54:01 PM UTC+1, jw3126 wrote:
>
> I need to do things like building a simple geometry which consists of a 
> few polygons, cylinders, spheres and calculate if/where rays hit these 
> objects.
>
> Is there some julia library which does this already? Or some easy to wrap 
> C/Fortran library? Any suggestions?
> I would prefer a solution, which does not depend on vectorization, but can 
> be called efficiently as part of a loop, one ray at a time.
>


Re: [julia-users] Re: raytracing in julia

2016-04-01 Thread Bart Janssens
Sorry for the shameless plug for my own package, but maybe CxxWrap.jl could 
help here:
https://github.com/barche/CxxWrap.jl

It was recently registered and works on Julia 0.4 and 0.5. If it seems like 
an option for you, I could help you get started to write the wrapper.

Regards,

Bart

On Friday, April 1, 2016 at 11:25:50 AM UTC+2, Simon Danisch wrote:
>
> Sorry, totally forgot to reply. Well, Cxx only works with a differently 
> compiled julia, which is why I'm not using it yet to wrap user facing 
> libraries. There a few half backed plans to support ray tracing for hit 
> detection at some point... But preferably on the GPU, maybe simply with 
> FireRay;)
> It seems that the official FireRays 
>  repo currently 
> can't be build on my system (Ubuntu 14.04), though there is already an 
> issue about this. 
>
> If there is only a C++ API, what kind of trouble does that mean for trying 
> to wrap it with julia? Is it impossible? Very hacky? Need to look into 
> llvm? Bad performance?
>
> Also what about your GeometryTypes 
>  package? I saw there 
> a type 'Particle', are there any plans to support ray tracing in that 
> package or on top of it?
>
> On Tuesday, March 29, 2016 at 12:30:14 PM UTC+2, Simon Danisch wrote:
>>
>> Oh, contrary to FireRender, FireRay seems to only have a C++ API...
>> There's also https://github.com/JuliaGeometry/GeometricalPredicates.jl
>> and https://github.com/JuliaGeometry/TriangleIntersect.jl, though!
>>
>>
>> Am Freitag, 25. März 2016 14:54:01 UTC+1 schrieb jw3126:
>>>
>>> I need to do things like building a simple geometry which consists of a 
>>> few polygons, cylinders, spheres and calculate if/where rays hit these 
>>> objects.
>>>
>>> Is there some julia library which does this already? Or some easy to 
>>> wrap C/Fortran library? Any suggestions?
>>> I would prefer a solution, which does not depend on vectorization, but 
>>> can be called efficiently as part of a loop, one ray at a time.
>>>
>>

Re: [julia-users] Re: raytracing in julia

2016-04-01 Thread Simon Danisch
Sorry, totally forgot to reply. Well, Cxx only works with a differently
compiled julia, which is why I'm not using it yet to wrap user facing
libraries. There a few half backed plans to support ray tracing for hit
detection at some point... But preferably on the GPU, maybe simply with
FireRay;)
It seems that the official FireRays
 repo currently
can't be build on my system (Ubuntu 14.04), though there is already an
issue about this.

If there is only a C++ API, what kind of trouble does that mean for trying
to wrap it with julia? Is it impossible? Very hacky? Need to look into
llvm? Bad performance?

Also what about your GeometryTypes
 package? I saw there a
type 'Particle', are there any plans to support ray tracing in that package
or on top of it?

On Tuesday, March 29, 2016 at 12:30:14 PM UTC+2, Simon Danisch wrote:
>
> Oh, contrary to FireRender, FireRay seems to only have a C++ API...
> There's also https://github.com/JuliaGeometry/GeometricalPredicates.jl
> and https://github.com/JuliaGeometry/TriangleIntersect.jl, though!
>
>
> Am Freitag, 25. März 2016 14:54:01 UTC+1 schrieb jw3126:
>>
>> I need to do things like building a simple geometry which consists of a
>> few polygons, cylinders, spheres and calculate if/where rays hit these
>> objects.
>>
>> Is there some julia library which does this already? Or some easy to wrap
>> C/Fortran library? Any suggestions?
>> I would prefer a solution, which does not depend on vectorization, but
>> can be called efficiently as part of a loop, one ray at a time.
>>
>


[julia-users] Re: raytracing in julia

2016-03-31 Thread Tero Frondelius
See Cxx.jl for C++ wrapping https://github.com/Keno/Cxx.jl/blob/master/README.md

[julia-users] Re: raytracing in julia

2016-03-30 Thread jw3126
It seems that the official FireRays 
 repo currently 
can't be build on my system (Ubuntu 14.04), though there is already an 
issue about this. 

If there is only a C++ API, what kind of trouble does that mean for trying 
to wrap it with julia? Is it impossible? Very hacky? Need to look into 
llvm? Bad performance?

Also what about your GeometryTypes 
 package? I saw there a 
type 'Particle', are there any plans to support ray tracing in that package 
or on top of it?

On Tuesday, March 29, 2016 at 12:30:14 PM UTC+2, Simon Danisch wrote:
>
> Oh, contrary to FireRender, FireRay seems to only have a C++ API...
> There's also https://github.com/JuliaGeometry/GeometricalPredicates.jl
> and https://github.com/JuliaGeometry/TriangleIntersect.jl, though!
>
>
> Am Freitag, 25. März 2016 14:54:01 UTC+1 schrieb jw3126:
>>
>> I need to do things like building a simple geometry which consists of a 
>> few polygons, cylinders, spheres and calculate if/where rays hit these 
>> objects.
>>
>> Is there some julia library which does this already? Or some easy to wrap 
>> C/Fortran library? Any suggestions?
>> I would prefer a solution, which does not depend on vectorization, but 
>> can be called efficiently as part of a loop, one ray at a time.
>>
>

[julia-users] Re: raytracing in julia

2016-03-29 Thread Simon Danisch
Oh, contrary to FireRender, FireRay seems to only have a C++ API...
There's also https://github.com/JuliaGeometry/GeometricalPredicates.jl
and https://github.com/JuliaGeometry/TriangleIntersect.jl, though!


Am Freitag, 25. März 2016 14:54:01 UTC+1 schrieb jw3126:
>
> I need to do things like building a simple geometry which consists of a 
> few polygons, cylinders, spheres and calculate if/where rays hit these 
> objects.
>
> Is there some julia library which does this already? Or some easy to wrap 
> C/Fortran library? Any suggestions?
> I would prefer a solution, which does not depend on vectorization, but can 
> be called efficiently as part of a loop, one ray at a time.
>


[julia-users] Re: raytracing in julia

2016-03-29 Thread jw3126
Thanks very much for the suggestion and the help offer! FireRays indeed 
looks like it could do what I need. Though I find it a bit intimidating as 
it involves lots of stuff I have no experience with. I will toy a bit 
around with FireRays and come back to you.
Btw have you some estimate how hard (say in number of lines of julia code) 
it is to wrap enough of Fire Ray to be able to intersect rays with 
cylinders on CPU?

On Friday, March 25, 2016 at 7:53:51 PM UTC+1, Simon Danisch wrote:
>
> I wrapped FireRender.jl , 
> which uses FireRays 
> 
>  to 
> do the hit detection.
> The C-Interface of FireRender was very nice to wrap and got me started 
> very quickly, so i expect it to be the same for FireRays (which sounds more 
> like the library you'd like to target). If you use Clang.jl 
> , you should be up to speed quickly!
> It's very fast and cross platform, as they use OpenCL.
> Since I'm already familiar with everything involved, I could help to get 
> you started.
>
> Best,
> Simon
>
>
> Am Freitag, 25. März 2016 14:54:01 UTC+1 schrieb jw3126:
>>
>> I need to do things like building a simple geometry which consists of a 
>> few polygons, cylinders, spheres and calculate if/where rays hit these 
>> objects.
>>
>> Is there some julia library which does this already? Or some easy to wrap 
>> C/Fortran library? Any suggestions?
>> I would prefer a solution, which does not depend on vectorization, but 
>> can be called efficiently as part of a loop, one ray at a time.
>>
>

[julia-users] Re: raytracing in julia

2016-03-25 Thread Simon Danisch
I wrapped FireRender.jl , 
which uses FireRays 

 to 
do the hit detection.
The C-Interface of FireRender was very nice to wrap and got me started very 
quickly, so i expect it to be the same for FireRays (which sounds more like 
the library you'd like to target). If you use Clang.jl 
, you should be up to speed quickly!
It's very fast and cross platform, as they use OpenCL.
Since I'm already familiar with everything involved, I could help to get 
you started.

Best,
Simon


Am Freitag, 25. März 2016 14:54:01 UTC+1 schrieb jw3126:
>
> I need to do things like building a simple geometry which consists of a 
> few polygons, cylinders, spheres and calculate if/where rays hit these 
> objects.
>
> Is there some julia library which does this already? Or some easy to wrap 
> C/Fortran library? Any suggestions?
> I would prefer a solution, which does not depend on vectorization, but can 
> be called efficiently as part of a loop, one ray at a time.
>