On Wed, Mar 16, 2016 at 9:33 PM, 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, 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
>>> everything to my current directory worked. Compilation starts but throws a
>>> "pixel fb_write error". I think this is from rt/do.c from clt_run().
>>>
>> That's weird. If you are outputting to a file it shouldn't try to use the
>> frame buffer. The frame buffer is used to render to the screen inside the
>> MGED interface. Did you use something like:
>>
>> make tgc tgc
>> e tgc ; rt -z 1 -o rt_tgc.pix
>>
>> I think Sean said you could use .png instead of .pix as well.
>>
>> Or did you use the MGED interface instead of choosing an output file? Try
>> both approaches.
>>
>> I'm really unfamiliar with this bit of code. Any idea how to fix this?
>>>
>>
>> I can't reproduce your issue here. Try the workarounds I suggested.
>> fb_write is a wrapper around a bunch 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.
>>
>
> i.e. it sounds like it rendered the image with OpenCL fine the problem is
> with the output.
>
PPS: If you still cannot get it to work force shut that code path like this:
in 'do.c' disable the clt_fbp code path. i.e. in:
void
clt_run(int cur_pixel, int last_pixel)
{
...
if (clt_fbp) {
bu_semaphore_acquire(BU_SEM_SYSCALL);
count = fb_write(clt_fbp, a_x, a_y, pixelp, size);
bu_semaphore_release(BU_SEM_SYSCALL);
if (count < size)
bu_exit(EXIT_FAILURE, "pixel fb_write error");
}
Replace 'clt_fbp' in the condition test with '0' and recompile the code.
This is just to get you to see some output. But this problem needs to be
fixed properly.
--
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=278785231&iu=/4140
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel