On Tue, Mar 8, 2016 at 3:14 PM, Param Hanji <param.catchch...@gmail.com>
wrote:
> I had run just cmake .. (which was described as the default). After
> re-making, I can run mged and produce the .pix files on the command line. I
> then used the pix-png tool to view the shapes and they are accurate. The
> GUI still doesn't open up.
>
> Also, how do I render with OpenCl? I'm assuming what I did now was the
> default rendering without OpenCL.
>
>
Use the 'rt -z' flag to render with OpenCL. You can see the list of rt
command line options by doing 'rt -h'.
Still 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 version of mged? BRL-CAD comes with the
>> libraries. To use the included libraries compile after:
>>
>> cmake .. -DBRLCAD_BUNDLED_LIBS=ON
>>
>> This was explained in the SVN page I originally linked:
>> http://brlcad.org/wiki/Building_from_SVN
>>
>> Once you get mged working in Tcl/Tk you can do something like this:
>> make tgc tgc
>> e tgc
>> rt -o tgc.pix
>>
>> Or use the raytrace command from the mged menus.
>>
>> On Tue, Mar 8, 2016 at 2:31 AM, Param Hanji <param.catchch...@gmail.com>
>> wrote:
>>
>>> Um running 'rt' gives me a message "view does not exist". The same
>>> message is displayed if I try any other primitive(like ell, sph as well).
>>> So maybe, it's an installation issue? However 'make check' gave me no
>>> errors.
>>>
>>> Also, I can't get a GUI to work. 'mged' starts and offers to attach
>>> either a text file or a null. But that's not an issue as I'm fine working
>>> 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 to
>>>> design vehicle wheels. But other people who have been around here longer
>>>> than I have can better suggest you which primitives are most useful to
>>>> implement. Sean and Erik were my GSoC mentors last year. They should know
>>>> 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 "librt/primitives/epa". I now need to
>>>>>> create an ID for it in "primitives/rt.cl". It's okay if I define it
>>>>>> with ID 40 right(on line 94)?
>>>>>>
>>>>>> I've also made changes to "primitives/common.cl",
>>>>>> "librt/CMakeLists.txt", "primitives/primitive_util.c" and
>>>>>> "primitives/epa/epa.c". Are there any other changes required?
>>>>>>
>>>>>
>>>>> Not that I can think of. Test the code (e.g. inside mged type 'make
>>>>> epa epa'; then render it with 'rt' with and without OpenCL acceleration).
>>>>> Can you get us a screenshot?
>>>>>
>>>>> Once everything is working ok you can create a patch in unified diff
>>>>> format e.g. with 'diff -Nurd' and then submit it to the BRL-CAD patch
>>>>> tracker at:
>>>>> https://sourceforge.net/p/brlcad/patches/
>>>>>
>>>>> 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
>>>>>>> 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> wrote:
>>>>>>>
>>>>>>>> The primitives folder has the primitive implementation code. See
>>>>>>>> librt/primitives/primitive_util.c for the OpenCL C calls proper.
>>>>>>>>
>>>>>>>> On Sat, Mar 5, 2016 at 7:10 AM, Param Hanji <
>>>>>>>> param.catchch...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> I was going through the code in librt/primitives folder. The
>>>>>>>>> OpenCL specific code seems very unfamiliar to me.
>>>>>>>>>
>>>>>>>>> Granted I'm new to OpenCL and large open source projects like this
>>>>>>>>> one, I still find it harder to understand than what I expected.
>>>>>>>>>
>>>>>>>>> "ell.c" nor any of the other files here contain code to create and
>>>>>>>>> configure the OpenCL data structures(for device, kernel, context etc).
>>>>>>>>> There no function calls like clCreateContext, clGetPlatformIDs,
>>>>>>>>> clGetDeviceIDs.
>>>>>>>>> The .cl file also doesn't have kernel functions as well. So I just
>>>>>>>>> don't know where to start.
>>>>>>>>>
>>>>>>>>> Is my working of knowledge 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 Engineering (Computer Graphics)
>>>>>>>> Instituto Superior Técnico/University of Lisbon, Portugal
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Vasco Alexandre da Silva Costa
>>>>>>> PhD in Computer Engineering (Computer Graphics)
>>>>>>> Instituto Superior Técnico/University of Lisbon, Portugal
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Vasco Alexandre da Silva Costa
>>>>> PhD in Computer Engineering (Computer Graphics)
>>>>> Instituto Superior Técnico/University of Lisbon, Portugal
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Vasco Alexandre da Silva Costa
>>>> PhD in Computer Engineering (Computer Graphics)
>>>> Instituto Superior Técnico/University of Lisbon, Portugal
>>>>
>>>
>>
>>
>> --
>> Vasco Alexandre da Silva Costa
>> PhD in Computer Engineering (Computer Graphics)
>> Instituto Superior Técnico/University of Lisbon, Portugal
>>
>
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel