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

2017-04-03 Thread Christopher Sean Morrison
> On Apr 1, 2017, at 10:31 PM, Shailesh Tripathi > wrote: > > > make hrt hrt > > e hrt > > rt -z1 > > 'make hrt hrt' gives usage error as 'hrt' is not in the name list. Not all primitives are hooked into the ‘make’ command (src/libged/make.c) — simple patch for someone interested in adding s

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

2017-04-03 Thread Shailesh Tripathi
Thanks Daniel :) Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sun, Apr 2, 2017 at 10:36 PM, Daniel Roßberg wrote: > This created a heart for me: > in heart.s hrt 0 0 0 1 0 0 0 1 0 0 0 1 10 > > Regards, > Daniel > > 2017-04-02 4:31 GMT+02:00 Shailesh Tripat

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

2017-04-02 Thread Daniel Roßberg
This created a heart for me: in heart.s hrt 0 0 0 1 0 0 0 1 0 0 0 1 10 Regards, Daniel 2017-04-02 4:31 GMT+02:00 Shailesh Tripathi : >> make hrt hrt >> e hrt >> rt -z1 > > 'make hrt hrt' gives usage error as 'hrt' is not in the name list. > > Shailesh Tripathi > B.Tech. Part-IV > Electronics

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

2017-04-01 Thread Shailesh Tripathi
> make hrt hrt > e hrt > rt -z1 'make hrt hrt' gives usage error as 'hrt' is not in the name list. Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sun, Apr 2, 2017 at 7:08 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Sun, Apr 2, 2017 at

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

2017-04-01 Thread Vasco Alexandre da Silva Costa
On Sun, Apr 2, 2017 at 1:51 AM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > Hello, > The OpenCL rt finally works :) > Nice! > To test my code, could someone please give me some set of commands to > successfully make and run raytrace over an HRT primitive. > I tried: > htt

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

2017-04-01 Thread Shailesh Tripathi
Hello, The OpenCL rt finally works :) To test my code, could someone please give me some set of commands to successfully make and run raytrace over an HRT primitive. I tried: http://brlcad.org/~Izak/Export_test.png But 'rt' command fails for this. (*Error: No regions remaining.*) Regards Shailesh

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

2017-04-01 Thread Shailesh Tripathi
Hello, The OpenCL rt finally works :) To test my code, could someone please give me some set of commands to successfully make and run raytrace over an HRT primitive. I tried: http://brlcad.org/~Izak/Export_test.png But 'rt' command fails for this. (Error: Shailesh Tripathi B.Tech. Part-IV Electr

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

2017-03-31 Thread Vasco Alexandre da Silva Costa
You need to make sure OpenCL is enabled with 'cmake' (e.g. using 'cmake-gui'), regenerate the Makefiles, and recompile the code with 'make'. Plus it's "rt -z1". On Fri, Mar 31, 2017 at 8:58 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > After setting the environment variab

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

2017-03-31 Thread Shailesh Tripathi
After setting the environment variables correctly, clinfo and vector_addition codes are working fine. But the error with "rt -z" is the same. Do I need to set any other configuration paths? How does rt detect opencl? Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-

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

2017-03-30 Thread Vasco Alexandre da Silva Costa
If OpenCL isn't detected on your system, the OpenCL backend won't be used. Did you check if OpenCL is properly installed in your system with 'clinfo'? On Thu, Mar 30, 2017 at 3:48 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > Hello, > Wait, I think there is some confusion

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

2017-03-30 Thread Shailesh Tripathi
Hello, Wait, I think there is some confusion. The argument for OpenCL compilation is "rt -z1" or "rt -z". I think it is the second one. Since "*rcc"* has not been ported yet, I am just creating "*sph*" and using "rt -z" command: When I try this, it says > *Planning to run with 8 processors* > >

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

2017-03-30 Thread Shailesh Tripathi
Hello, Sorry for the late reply. As I said I got busy with my exams. > You should see a consistent difference in performance, but this would > require compiling and installing both with and without OpenCL support to > make sure the same compilation options are being used. > I don't exactly underst

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

2017-03-28 Thread Vasco Alexandre da Silva Costa
On Tue, Mar 28, 2017 at 2:57 AM, Christopher Sean Morrison wrote: > > > On Mar 27, 2017, at 8:01 PM, Shailesh Tripathi itbhu.ac.in> wrote: > > > > Finally, now all the errors are resolved. deviceQuery' is working fine > with CUDA which hints that OpenCL is also setup. > > Now, as I told the 'rt'

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

2017-03-27 Thread Christopher Sean Morrison
> On Mar 27, 2017, at 8:01 PM, Shailesh Tripathi > wrote: > > Finally, now all the errors are resolved. deviceQuery' is working fine with > CUDA which hints that OpenCL is also setup. > Now, as I told the 'rt' command and 'rt and 'rt -z1' gives quantitatively > equal results. > How can I mak

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

2017-03-27 Thread Shailesh Tripathi
Finally, now all the errors are resolved. deviceQuery' is working fine with CUDA which hints that OpenCL is also setup. Now, as I told the 'rt' command and 'rt and 'rt -z1' gives quantitatively equal results. *How can I make sure that 'rt -z1' is making use of GPU?* > > Moreover, at the end of t

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

2017-03-27 Thread Shailesh Tripathi
I was doing that only but I think I was missing something in the installations steps. Finally the rt command works but I am not sure with the 'rt -z1' command. It is working fine but the output log is similar to the 'rt' command result. If 'rt -z1' shows an output does it means it is using OpenCL,

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

2017-03-26 Thread Christopher Sean Morrison
> On Mar 24, 2017, at 6:25 PM, Shailesh Tripathi > wrote: > > Hello, > I am using CentOS 6.8. I compiled using "cmake ../brlcad-code > -DBRLCAD_ENABLE_OPENGL=OFF" to turn off the functionality using OpenGL. In > the compilation log "OpenGl support(optional)..: OFF". But when I tried > 'r

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

2017-03-26 Thread Shailesh Tripathi
Hello Sir, Thank you for the description. I got a rough idea at first, but this makes it a lot clear :) Regarding the OpenGL issue: I am using CentOS 6 with NVIDIA GPU. I have installed CUDA. The and the 'devicequery' code works fine, which makes me think that CUDA, and hence OpenCL, is installed

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

2017-03-26 Thread Vasco Alexandre da Silva Costa
On Sat, Mar 25, 2017 at 10:00 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > I have a doubt: > - I can see four kernles namely "do_pixel", "count_hits", "store_segs" and > "shade_segs" being launched. Which of these uses the xxx_shot() functions > and how? I can see the prog

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

2017-03-25 Thread Shailesh Tripathi
Hello Sir, I have a doubt: - I can see four kernles namely "do_pixel", "count_hits", "store_segs" and "shade_segs" being launched. Which of these uses the xxx_shot() functions and how? I can see the programs being compiled using clcompileprogram and then all of them linked together, but I am not ab

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

2017-03-24 Thread Shailesh Tripathi
Hello, 1. I am getting the same error "*Xlib: extension "GLX" missing on display ":0.0".*" with '*glxinfo*'. I will try to fix this issue. 2. Meanwhile, is there a way test the code without 'OpenGL' support? I tried "*cmake ../brlcad-code -DBRLCAD_ENABLE_OPENGL=OFF*" but it is not helping. Regard

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

2017-03-24 Thread Vasco Alexandre da Silva Costa
AFAIK OpenCL should work without OpenGL. But you are probably better off installing OpenGL in the first place. You need to install the drivers specific to your graphics hardware. Just installing some Mesa libraries is not sufficient to get accelerated OpenGL support. You can then test if OpenGL sup

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

2017-03-24 Thread Shailesh Tripathi
Hello, I am using CentOS 6.8. I compiled using "cmake ../brlcad-code -DBRLCAD_ENABLE_OPENGL=OFF" to turn off the functionality using OpenGL. In the compilation log "*OpenGl support(optional)..: OFF"*. But when I tried 'rt' command, the error shown is same. Is there somewhere else I need to chan

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

2017-03-24 Thread Christopher Sean Morrison
> On Mar 24, 2017, at 4:22 PM, Shailesh Tripathi > wrote: > > Hello Sir, > You will either want to make sure GLX is installed properly or compile with > OpenGL support disabled > Ok I will check the GLX install again. > How to disable OpenGL support for 'rt’? It’s an option during cmake.

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

2017-03-24 Thread Shailesh Tripathi
Hello Sir, > You will either want to make sure GLX is installed properly or compile > with OpenGL support disabled > Ok I will check the GLX install again. How to disable OpenGL support for 'rt'? I need the 'rt' and 'rt -z1' to use OpenCL code. But in both the case I am getting the same error. Is

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

2017-03-24 Thread Christopher Sean Morrison
Not necessarily. BRL-CAD has a variety of windowing methods including direct X11 (without OpenGL), GLX, and other methods. You will either want to make sure GLX is installed properly or compile with OpenGL support disabled (assuming it’s not needed for some other aspect of the OpenCL code). C

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

2017-03-24 Thread Shailesh Tripathi
If OpenGL libraries are not installed correctly then shouldn't there be issue with raytracer launched from graphics window also? Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Fri, Mar 24, 2017 at 10:36 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in>

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

2017-03-24 Thread Shailesh Tripathi
Hello, I am using centos 6.8 For OpenGL, should I install the libraries from mesa-libgl, GLEW or freeglut? Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Fri, Mar 24, 2017 at 10:29 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrot

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

2017-03-24 Thread Vasco Alexandre da Silva Costa
Hello, A proper answer to your question requires more information to be provided. Which operating system and version are you using, if it's Linux which distro, etc. >From the errors you got, it looks like you don't have OpenGL properly installed on your system. On Fri, Mar 24, 2017 at 4:27 PM, Sh

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

2017-03-24 Thread Shailesh Tripathi
Hello, I was trying this tutorial for learning mged " http://brlcad.org/VolumeII-Introduction_to_MGED.pdf";. The raytrace works as expected if launched from graphics window. But how to launch the same from command window. I just typed 'rt' and it shows the following error: *Xlib: extension "GLX"