[brlcad-devel] Real-Time Ray Tracing

2015-02-18 Thread Vasco Alexandre da Silva Costa
multiple primitive types but I do not know how good the performance would be in a system like that. Is your OpenGL backend (I'm assuming you have one for the modeling stage) totally different? FWIW this is my homepage: http://web.ist.utl.pt/vasco.costa/ Regards, -- Vasco Alexandre da Silva Costa PhD

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-20 Thread Vasco Alexandre da Silva Costa
http://ddemidov.github.io/vexcl/ Nah. Don't want to add more build dependencies and I have experience with OpenCL. :-) OpenACC might be an alternative though. Thx for the comments! -- Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems and Computer Science Instituto

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-21 Thread Vasco Alexandre da Silva Costa
to reduce the amount of CL kernel calls and maximize coherence, but from what I understand everything currently happens in one giant megakernel. So perhaps a lot of effort should be spent changing this way of things before doing any CL coding at all. -- Vasco Alexandre da Silva Costa PhD Student

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-21 Thread Vasco Alexandre da Silva Costa
improvements it doesn't mean you are using a waterfall model. Is the Linux kernel development model a waterfall model? I would say it isn't. I will change the planning timetable to work in the fashion you describe. Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-06 Thread Vasco Alexandre da Silva Costa
On Fri, Mar 6, 2015 at 5:03 PM, benson chepkwony bchepk...@att.net wrote: 3. Can we Modify/Edit these libraries such as: OpenCL, Opennurbs and Rhino3D folks or should we write a ray tracer from scratch, let say if we need to optimize it? 4. Is NURBS used to find ray intersection on objects?

Re: [brlcad-devel] BRL-CAD Web Site

2015-02-27 Thread Vasco Alexandre da Silva Costa
-- Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems and Computer Science Instituto Superior Técnico/University of Lisbon, Portugal -- Dive into the World of Parallel Programming The Go

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-05 Thread Vasco Alexandre da Silva Costa
work only on getting the double precision to work but the performance will suffer a great deal. -- Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems and Computer Science Instituto Superior Técnico/University of Lisbon, Portugal

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-26 Thread Vasco Alexandre da Silva Costa
, Christopher Sean Morrison brl...@mac.com wrote: On Mar 21, 2015, at 12:55 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: I looked some more at the code and yeah the weave booleans step is branch heavy and has gotos in it. So this is most likely a bad candidate for GPU

Re: [brlcad-devel] Real-Time Ray Tracing

2015-03-26 Thread Vasco Alexandre da Silva Costa
On Thu, Mar 26, 2015 at 6:49 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: Ok. The boolean weaving seems more interesting. Besides being possible to store similarly to a kd-tree with ropes, like you said, it's also possible that we can do some sort of static optimization

Re: [brlcad-devel] Plate Mode NURBS raytracing

2015-03-26 Thread Vasco Alexandre da Silva Costa
and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel -- Vasco Alexandre da Silva Costa

Re: [brlcad-devel] OpenCL RT Patches

2015-04-28 Thread Vasco Alexandre da Silva Costa
On Tue, Apr 28, 2015 at 3:40 AM, Christopher Sean Morrison brl...@mac.com wrote: On Apr 27, 2015, at 5:48 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: I made a couple of patches. One fixes compilation errors and refactors the OpenCL SPH (sphere) shot code. The other patch

[brlcad-devel] OpenCL RT Patches

2015-04-27 Thread Vasco Alexandre da Silva Costa
can find on sf.net) maintainer. - sf.net user account: vasco_costa - brlcad.org wiki user account: vasco.costa Kind regards, -- Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems and Computer Science Instituto Superior Técnico/University of Lisbon, Portugal

[brlcad-devel] GSoC 2015 Schedule

2015-05-13 Thread Vasco Alexandre da Silva Costa
at this moment nor do I plan to submit to another conference until work on BRL-CAD for GSoC is complete. Thanks for reading this message, -- Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems and Computer Science Instituto Superior Técnico/University of Lisbon, Portugal

Re: [brlcad-devel] Bare bones renderer

2015-06-04 Thread Vasco Alexandre da Silva Costa
Simplify the shading code some more. On Thu, Jun 4, 2015 at 11:10 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: Phong shading with a default material. The idea here is to create a simplified self-contained rendering pipeline that we can use as a basis for a port to OpenCL

Re: [brlcad-devel] Bare bones renderer

2015-06-04 Thread Vasco Alexandre da Silva Costa
separate the shots from the boolean weaving with minimal context between stages. - cleanly mark all data in/out on each stage and minimize CPU-GPU data transfers. On Thu, Jun 4, 2015 at 5:04 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: Now with the actual patch attached

[brlcad-devel] Bare bones renderer

2015-06-02 Thread Vasco Alexandre da Silva Costa
. Regards, -- Vasco Alexandre da Silva Costa PhD Student at Department of Information Systems and Computer Science Instituto Superior Técnico/University of Lisbon, Portugal Index: src/rt/do.c === --- src/rt/do.c (revision 65157) +++ src

Re: [brlcad-devel] Bare bones renderer

2015-06-04 Thread Vasco Alexandre da Silva Costa
Now with the actual patch attached... On Thu, Jun 4, 2015 at 5:03 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: Simplified code for: - ray generation - writing the color output to the frame buffer On Tue, Jun 2, 2015 at 11:55 PM, Vasco Alexandre da Silva Costa vasco.co

Re: [brlcad-devel] Bare bones renderer

2015-06-04 Thread Vasco Alexandre da Silva Costa
Simplified code for: - ray generation - writing the color output to the frame buffer On Tue, Jun 2, 2015 at 11:55 PM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: Hello, I've been trying to make a really simple bare bones rendering loop in C without branches, recursion, etc

Re: [brlcad-devel] Bare bones renderer

2015-06-09 Thread Vasco Alexandre da Silva Costa
resource'). As discussed with Sean a couple of days ago I am going to stop working on this angle and start working on the grid spatial partitioning in OpenCL next. On Fri, Jun 5, 2015 at 12:16 AM, Vasco Alexandre da Silva Costa vasco.co...@gmail.com wrote: Simplify the shading code some more

Re: [brlcad-devel] Bare bones renderer

2015-06-16 Thread Vasco Alexandre da Silva Costa
Use OpenMP to spawn rendering threads. The code has some bugs in it. I think its improper initialization of the resource pools which leads to a spurious double free. But I haven't been able to find out exactly where the bugs are. On Wed, Jun 10, 2015 at 1:27 AM, Vasco Alexandre da Silva Costa

Re: [brlcad-devel] GSoC 2015 Midterm Summary

2015-07-03 Thread Vasco Alexandre da Silva Costa
For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel -- Vasco Alexandre da Silva Costa PhD Student

Re: [brlcad-devel] Google doc updates

2015-05-22 Thread Vasco Alexandre da Silva Costa
with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel -- Vasco Alexandre da

Re: [brlcad-devel] New Committer: Vasco Alexandre da Silva Costa

2015-08-05 Thread Vasco Alexandre da Silva Costa
to the API of librt this work will proceed on an opencl branch. Regards, On Wed, Aug 5, 2015 at 4:40 AM, Christopher Sean Morrison brl...@mac.com wrote: Vasco Alexandre da Silva Costa has been granted commit access. Vasco has been working on an OpenCL research project under GSoC that picks up

[brlcad-devel] GitLab

2015-08-07 Thread Vasco Alexandre da Silva Costa
Hello folks, I just noticed that GitLab offers 10GB per project: https://about.gitlab.com/gitlab-com/ Something to keep in mind in case we have more issues with SourceForge. IIRC Dice is going to sell them and a buyer hasn't been found yet. Regards, -- Vasco Alexandre da Silva Costa Instituto

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-06-02 Thread Vasco Alexandre da Silva Costa
uld also finish up final bits > of PART and submit a patch before the start of next week. > Ok! I agree. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/Universit

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-06-05 Thread Vasco Alexandre da Silva Costa
On Thu, Jun 2, 2016 at 10:36 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, Jun 2, 2016 at 6:55 PM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> I'll try my best for one last day to get things working on OS X. >> Otherwise

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-08 Thread Vasco Alexandre da Silva Costa
licate what's necessary to get the boolean weaving to work. We don't want to reimplement the whole rendering pipeline in a summer. Believe me I tried. :-) -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-06-06 Thread Vasco Alexandre da Silva Costa
ins the modified version). I'll attach a part of the logs. > Make sure you are running the right mged and rt binaries. It sounds like maybe you aren't running the version you modified. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/Un

Re: [brlcad-devel] PART and BU_LIST

2016-06-14 Thread Vasco Alexandre da Silva Costa
iterate over all pixels */ for (j=h[y*width+x]; j<h[y*width+x+1]; j++) { /* iterate over all segments in a pixel */ seg = segs[j]; } } If you have more doubts about this we can schedule an IRC session this week. Regards, > On Sat, Jun 11, 2016 at 7:16 PM Vasco Alexandre

Re: [brlcad-devel] PART and BU_LIST

2016-06-14 Thread Vasco Alexandre da Silva Costa
On Tue, Jun 14, 2016 at 9:11 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Tue, Jun 14, 2016 at 9:10 AM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Yup, I did all of that and still same error. I copied every individual >

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-05-30 Thread Vasco Alexandre da Silva Costa
most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > _______ > BRL-CAD Developer mail

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-27 Thread Vasco Alexandre da Silva Costa
it on sourceforge. > Your patch looks great. Just add a space in this line: +cor_proj =dot(pprime, dprime); ^ Then submit it to SourceForge. Good work, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-27 Thread Vasco Alexandre da Silva Costa
On Fri, May 27, 2016 at 2:33 PM, Param Hanji wrote: > Thanks a lot! Any leads on how to use the partition list output by > boolfinal()? I'll need to convert this back into an array of segs to be > further processed. > Can I just copy inhit and outhit directly for

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-06-01 Thread Vasco Alexandre da Silva Costa
On Wed, Jun 1, 2016 at 5:04 PM, Param Hanji wrote: > Hello, > > I successfully got BRL-CAD working, with all its applications and in the > X11 window system too. As I mentioned earlier, even the dynamic linking is > fixed. > > OpenCL mode fails with compilation

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-23 Thread Vasco Alexandre da Silva Costa
On Thu, Jun 23, 2016 at 1:04 PM, Param Hanji <param.catchch...@gmail.com> wrote: > > > On Wed, Jun 22, 2016 at 7:43 PM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Wed, Jun 22, 2016 at 2:36 PM, Param Hanji <param.catchch...@gmail.co

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-20 Thread Vasco Alexandre da Silva Costa
material, shade function, etc. Regards, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- What NetFlow Analyzer can do for y

Re: [brlcad-devel] Automatic polygonal mesh healing project

2016-03-09 Thread Vasco Alexandre da Silva Costa
?id=278785111=/4140 > ___ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > > -- Vasco Alexandre

Re: [brlcad-devel] REF: Help Understand the Code.

2016-03-10 Thread Vasco Alexandre da Silva Costa
rallel programming concepts can be challenging to master and the development environment tools are still in their infancy. > Thanks. > > From, > Benson Chepkwony > > > > On 3/9/2016 4:05 PM, Vasco Alexandre da Silva Costa wrote: > > On Wed, Mar 9, 2016 at 4:52 AM, benson

Re: [brlcad-devel] Help understanding code

2016-03-15 Thread Vasco Alexandre da Silva Costa
On Tue, Mar 15, 2016 at 8:05 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Tue, Mar 15, 2016 at 11:52 AM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Further reading hinted at the lack of OpenCL 1.2 on Nvidia graphics >> car

Re: [brlcad-devel] Help understanding code

2016-03-18 Thread Vasco Alexandre da Silva Costa
On Fri, Mar 18, 2016 at 9:14 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Fri, Mar 18, 2016 at 1:17 PM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Hello, >> >> On Thu, Mar 17, 2016 at 4:57 AM Vasco Alexandre da Silva

Re: [brlcad-devel] Help understanding code

2016-03-18 Thread Vasco Alexandre da Silva Costa
se -z option. > I think it is '-z 1'. The '-z' option currently requires a numeric argument. '1' to enable OpenCL mode and '0' to disable it. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior

Re: [brlcad-devel] REF: Help Understand the Code.

2016-03-18 Thread Vasco Alexandre da Silva Costa
/L30_solidmod_basics.pdf What needs to be done is to implement the boolean evaluation and CSG in OpenCL. The OpenCL backend has a sufficient amount of ray-primitive shot tests to go with and the ray traversal is already accelerated with a BVH. This task requires a background in ray-tracing an

Re: [brlcad-devel] REF: Help Understand the Code.

2016-03-13 Thread Vasco Alexandre da Silva Costa
ide you along the way. > And for this project we are looking for Work-Items and Work-Groups in > primitives c codes that can be computed concurrently under OpenCL GPU > Platform. > > Thanks. > > From, > Benson Chepkwony > > > > > > On 3/10/2016 12:10 PM, Vasco Ale

Re: [brlcad-devel] Help understanding code

2016-03-14 Thread Vasco Alexandre da Silva Costa
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel > > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- Transform

Re: [brlcad-devel] Help understanding code

2016-03-08 Thread Vasco Alexandre da Silva Costa
ill I would expect you to be able to use the mged Tcl/Tk interface... Please send a screenshot once you can. Regards, -Vasco Costa > Cheers > > On Tue, Mar 8, 2016 at 9:07 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> Are you using the Tcl/Tk

Re: [brlcad-devel] REF: Help Understand the Code.

2016-03-08 Thread Vasco Alexandre da Silva Costa
people but we need to figure out what your strengths are, get you guys to understand the problems, so you can figure out which approach or which part you want to work on. What I do not know is how is the workshare allocation for GSoC this year. All the best, -Vasco Costa > Thank you.

Re: [brlcad-devel] REF: Help Understand the Code.

2016-03-09 Thread Vasco Alexandre da Silva Costa
ng performance than actual ray tracing algorithm performance. Regards, -Vasco Costa > From, > Benson Chepkwony > > > > On 3/8/2016 8:55 PM, Vasco Alexandre da Silva Costa wrote: > > On Tue, Mar 8, 2016 at 10:35 PM, benson chepkwony < <bchepk...@att.net> > bchepk

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
I meant of course "failed to read OpenCL code file (solver.cl)". On Wed, Mar 16, 2016 at 8:32 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Mar 16, 2016 at 8:26 PM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: >

Re: [brlcad-devel] google summer of code : Geometry Conversion Library

2016-03-09 Thread Vasco Alexandre da Silva Costa
>> BRL-CAD Developer mailing list >> brlcad-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/brlcad-devel >> >> > > > ------

Re: [brlcad-devel] google summer of code : Geometry Conversion Library

2016-03-09 Thread Vasco Alexandre da Silva Costa
On Thu, Mar 10, 2016 at 1:17 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, Mar 10, 2016 at 12:21 AM, Margaret Hu <margaret.ss...@gmail.com> > wrote: > >> Sean: >> >> >>Not really — that is your job to propose a be

Re: [brlcad-devel] Automatic Polygonal Mesh Healing

2016-03-31 Thread Vasco Alexandre da Silva Costa
RL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal

Re: [brlcad-devel] REF: Primitive Patch

2016-03-31 Thread Vasco Alexandre da Silva Costa
our minimum requirement. AFAIK NVIDIA does not support OpenCL 2.0 very all yet. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
. > > Best, > Param > > On Thu, Mar 17, 2016 at 3:04 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Wed, Mar 16, 2016 at 9:32 PM, Vasco Alexandre da Silva Costa < >> vasco.co...@gmail.com> wrote: >> >>> On Wed,

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
On Thu, Mar 17, 2016 at 8:49 PM, Christopher Sean Morrison <brl...@mac.com> wrote: > > > On Mar 17, 2016, at 03:55 PM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > > The problem is the material lighting code. The results are not the same. > I

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
On Wed, Mar 16, 2016 at 9:32 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Mar 16, 2016 at 9:12 PM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Yes, there was an error message on the terminal. Manually copying >> everythi

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
nch of possible backends so its possible you are hiting some poorly tested code path. I would need at least a GDB stack trace to start looking into it. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
On Wed, Mar 16, 2016 at 8:26 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Mar 16, 2016 at 8:15 PM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Hi Vasco Costa, >> >> Yes -z 1 did it. :) >> >>

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
On Wed, Mar 16, 2016 at 7:36 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Mar 16, 2016 at 7:28 PM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Hi, >> >> Installing the AMD SDK gave me OpenCL 1.2 support. I manage

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
rrent directory '.'. The list of .cl files you need to copy or link to is: solver.cl arb8_shot.clbot_shot.clehy_shot.clell_shot.clsph_shot.clrec_shot.cltgc_shot.cltor_shot.cl rt.cl The current paths should be something like librt/primitives/*.cl , librt/primitives/*/*_shot.cl You should just place them all in the current directory. > Best, > Param &

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
ry. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140 > ___ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > > -- Vasco Alexandre da Sil

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
On Thu, Mar 17, 2016 at 7:54 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, Mar 17, 2016 at 7:47 PM, Christopher Sean Morrison <brl...@mac.com > > wrote: > >> >> >> On Mar 17, 2016, at 05:33 AM, Param Hanji <param.catchc

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Vasco Alexandre da Silva Costa
ux right now). So please submit the patch to the BRL-CAD ticketing system here: https://sourceforge.net/p/brlcad/patches/ So we can process it in the standard way. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/Univer

Re: [brlcad-devel] Help understanding code

2016-03-22 Thread Vasco Alexandre da Silva Costa
n Tue 22 Mar, 2016, 9:28 AM Vasco Alexandre da Silva Costa, < > vasco.co...@gmail.com> wrote: > >> On Tue, Mar 22, 2016 at 3:17 AM, Param Hanji <param.catchch...@gmail.com> >> wrote: >> >>> I updated my svn repo to revision 67420. However, rt.cl wasn't

Re: [brlcad-devel] Help understanding code

2016-03-22 Thread Vasco Alexandre da Silva Costa
7.25.0/share/OpenCL/. > > In the C loading code, you can get the path to the file like this: > > const char *clfile1 = bu_brlcad_data(“OpenCL/file1.cl”, 0); > > You can also just look up the OpenCL dir and manually append / search for > files, e.g., with bu_file_exists(). > Th

Re: [brlcad-devel] Help understanding code

2016-03-22 Thread Vasco Alexandre da Silva Costa
the expected rendering output on your system now. On Tue, Mar 22, 2016 at 10:41 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Tue, Mar 22, 2016 at 7:32 AM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Hi >> >> Currently the b

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Vasco Alexandre da Silva Costa
.catchch...@gmail.com> > wrote: > >> Oops I did manually edit the patch. I ran diff again and uploaded the >> patch without changes. I also changed the ID used to 19. >> >> On Sat 19 Mar, 2016, 2:51 AM Vasco Alexandre da Silva Costa, < >> vasco.co...@gmail.com&

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Vasco Alexandre da Silva Costa
in my editor. Would you like me to generate > another patch? > Yes. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- Tra

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Vasco Alexandre da Silva Costa
lank image. I tried generating the png with the -l2 > option as well as the -W as suggested. Still no luck > Did you do an SVN update? Everything is working here and I'm also using the AMD APP SDK. If you copied the .cl files over to your current directory instead of just linking to them, I

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Vasco Alexandre da Silva Costa
_brlcad_data(). See include/bu/file.h for details and examples > throughout the codebase. > Right. But I think it's also necessary to change the CMakefiles in order to install the .cl files somewhere. I'm unsure where to place them. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (

Re: [brlcad-devel] Help understanding code

2016-03-20 Thread Vasco Alexandre da Silva Costa
"CODING STYLE & STANDARDS" in the HACKING file of BRL-CAD SVN trunk. On Sun, Mar 20, 2016 at 2:58 AM, Param Hanji <param.catchch...@gmail.com> wrote: > Fixed it > > > On Sun, Mar 20, 2016 at 6:47 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com>

Re: [brlcad-devel] Help understanding code

2016-03-20 Thread Vasco Alexandre da Silva Costa
On Sun, Mar 20, 2016 at 7:32 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > Ok, now the code compiles! I checked the code and functionally it looks > good. But you need to indent the code according to the BRL-CAD coding > style. e.g. indent the code with 4

Re: [brlcad-devel] GSOC Propsal Review

2016-03-20 Thread Vasco Alexandre da Silva Costa
IMO. Anyone else has any more comments? -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- Transform Data into Opportunity. Ac

Re: [brlcad-devel] Help understanding code

2016-03-08 Thread Vasco Alexandre da Silva Costa
with the > command line. Just want to know how I can view the trace. > > Best, > Param Hanji > > On Tue, Mar 8, 2016 at 1:08 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> PS: I originally suggested the 'eto' primitive because it is useful t

Re: [brlcad-devel] Help understanding code

2016-03-05 Thread Vasco Alexandre da Silva Costa
PS: When I was starting out programming in this project I used the NetBeans IDE to browse the BRL-CAD source code so I could understand the code structure better. As a last resort grep is your friend... On Sat, Mar 5, 2016 at 10:25 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com>

Re: [brlcad-devel] Help understanding code

2016-03-05 Thread Vasco Alexandre da Silva Costa
edge of OpenCL wrong/outdated? Are there resources I > can refer to? Any help would be great. Thank you for your time! > > Best, > Param Hanji > -- Vasco Alexandre da Silva Costa PhD in Computer Engineerin

Re: [brlcad-devel] (no subject)

2016-03-03 Thread Vasco Alexandre da Silva Costa
' directory. e.g. 'librt/primitives/ehy/ehy*.{c,cl}'. Regards, On Thu, Mar 3, 2016 at 6:46 PM, Param Hanji <param.catchch...@gmail.com> wrote: > Can I have a link to the existing code please? > > On Fri, Mar 4, 2016 at 12:02 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.co

Re: [brlcad-devel] (no subject)

2016-03-03 Thread Vasco Alexandre da Silva Costa
t; BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal ---

Re: [brlcad-devel] Help understanding code

2016-03-07 Thread Vasco Alexandre da Silva Costa
that better. Regards, -Vasco Costa On Mon, Mar 7, 2016 at 7:30 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, Mar 7, 2016 at 11:28 AM, Param Hanji <param.catchch...@gmail.com> > wrote: > >> Hi, >> >> I've managed to accelerate "

Re: [brlcad-devel] Help understanding code

2016-03-07 Thread Vasco Alexandre da Silva Costa
es/ All the best, -Vasco Costa > And grep really helped. Thank you :) > > On Sun, Mar 6, 2016 at 5:20 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> PS: When I was starting out programming in this project I used the >> NetBea

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-19 Thread Vasco Alexandre da Silva Costa
ges to the shot code since your last patch submission. Namely you should add the .cl file to the appropriate .cmake file so the .cl file gets installed upon compilation. Regards, -- Vasco Alexandre da Silva Costa PhD in Computer Engin

Re: [brlcad-devel] Understanding Data Structures

2016-05-24 Thread Vasco Alexandre da Silva Costa
to look at your primitive intersection patch this week. Regards, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- Mobile secur

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-16 Thread Vasco Alexandre da Silva Costa
On Mon, May 16, 2016 at 3:08 PM, Param Hanji <param.catchch...@gmail.com> wrote: > > On Mon, May 16, 2016 at 6:01 PM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> http://brlcad.org/wiki/User:Catchchaos/GSoC2016/Proposal >>> >&g

Re: [brlcad-devel] librt OpenCL starting point

2016-05-13 Thread Vasco Alexandre da Silva Costa
activated by passing '-l 5' as a command line argument to the 'rt' program while it's in OpenCL mode i.e. '-z 1'. Regards, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal

[brlcad-devel] librt OpenCL starting point

2016-05-12 Thread Vasco Alexandre da Silva Costa
nding things a little hard to > grasp at the moment. > You generate a list of segments for each ray. Then you evaluate those segments according to the CSG tree data to determine the final output. I hope this was clear? -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer G

[brlcad-devel] Starting point for BRL-CAD OpenCL

2016-05-03 Thread Vasco Alexandre da Silva Costa
de this online presentation might be interesting: http://developer.amd.com/wordpress/media/2013/06/2041_final.pdf -- A good primitive to start with would be ETO. Then you can do PART later. Regards, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técni

Re: [brlcad-devel] Understanding Data Structures

2016-05-08 Thread Vasco Alexandre da Silva Costa
process and the data structures. Links to an article or a book > would be nice. > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal ---

[brlcad-devel] OpenCL development on OS X

2016-05-07 Thread Vasco Alexandre da Silva Costa
rrent librt OpenCL compiles and runs on MacOS X. So please do test it there if you can. All the best, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal ---

Re: [brlcad-devel] OpenCL Runtime Debugging

2016-08-13 Thread Vasco Alexandre da Silva Costa
bably need to declare the pointer fields in struct partition e.g. 'pt_inseg' with the 'global' qualifier as well. -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal ---

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-18 Thread Vasco Alexandre da Silva Costa
as before the boolean ops. So you should first generate FinalPart lists for all pixels and after that write all the results to the GPU instead of doing it pixel by pixel. Right now we can't compute the size of the FinalPart list a priori. -- Vasco Alexand

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-19 Thread Vasco Alexandre da Silva Costa
) { > /* code to copy back to GPU for shading */ > } > > The discrepancy arises in this gpu_final_part.pgm itself. Copying back to > GPU (after resizing the segs array) even if done right is not enough as the > error has already occured. Does this make sense? > > On Mon, Jul 18, 201

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-11 Thread Vasco Alexandre da Silva Costa
nly and I took some > time to fix and update them. > If you get working drivers do not to update them. :-) NVIDIA sometimes messes up on a revision as they usually test on their most recent cards but sometimes the older cards stop working. I don't know how the process works on MacOS X tho

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-27 Thread Vasco Alexandre da Silva Costa
ke the code faster without these loops we can either store the dead solids, and mark them somehow to ignore them on traversal, or we can create an array that converts from one index (i.e. stp->st_bit) to the other (i.e. gpu_seg->seg_sti). Regards, -- Vasco Alexandre da Silva Costa PhD in Com

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-06 Thread Vasco Alexandre da Silva Costa
On Mon, Jul 4, 2016 at 9:33 PM, Param Hanji <param.catchch...@gmail.com> wrote: > On Mon, Jul 4, 2016 at 9:52 PM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Mon, Jul 4, 2016 at 12:30 PM, Param Hanji <param.catchch...@gmail.com> >

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-04 Thread Vasco Alexandre da Silva Costa
On Mon, Jul 4, 2016 at 12:30 PM, Param Hanji wrote: > Hi Vasco, > > I tried everything and still no luck. I'm pretty sure just copying inhits > and outhits is not enough. Going by Sean's explanation of segments and > partitions, it looks like I have no option but to

Re: [brlcad-devel] OpenCL Runtime Debugging

2016-08-08 Thread Vasco Alexandre da Silva Costa
I would > pass an argument, which I would change in the kernel and then print out its > value to see if certain parts of the code (an if condition block for > example) were processed. This doesn't seem to be working though. > > Thank you > Param Hanji > -- Vasco Alexandre da S

[brlcad-devel] Compile bugs on SVN HEAD

2016-09-28 Thread Vasco Alexandre da Silva Costa
, -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal Index: src/conv/k-g.cpp === --- src/conv/k-g.cpp (revision 68926) +++ src/conv/k-g.cpp (working

Re: [brlcad-devel] Accepted into GCI 2016! Tasks needed.

2016-11-09 Thread Vasco Alexandre da Silva Costa
Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > ___ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-deve

Re: [brlcad-devel] Accepted into GCI 2016! Tasks needed.

2016-11-09 Thread Vasco Alexandre da Silva Costa
On Thu, Nov 10, 2016 at 7:30 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > Ok, I added two tasks to write the code to port the missing OpenCL > ray-quadric intersection routines. I'm not asking the students to write the > C/OpenCL glue code because I think

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Vasco Alexandre da Silva Costa
-- > -- > 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.sour

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-28 Thread Vasco Alexandre da Silva Costa
ke the > rendering here http://brlcad.org/wiki/User:Vasco.costa/GSoC15/logs ? > > Last but not least, it should say "Compiling OpenCL programs...” and > “OCLPREP” instead of “PREP” in the output. > Yes, the easiest way to know for sure is to look at the console log output. -- Vasco Alex

  1   2   >