octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opengl and images


From: Shai Ayal
Subject: Re: opengl and images
Date: Mon, 5 Oct 2009 09:55:26 +0200

On Mon, Oct 5, 2009 at 8:15 AM, Michael D Godfrey
<address@hidden> wrote:
> On 10/04/2009 10:48 PM, Søren Hauberg wrote:
>>
>> man, 05 10 2009 kl. 06:43 +0200, skrev Shai Ayal:
>>>
>>> >  The image is drawn at z=0, so to see the plot, you should plot the
>>> >  libe aboce the z-plane:
>>> >    hold on, plot3 (1:100, 50*sin(linspace (0, 2*pi,
>>> >  100))+50,ones(1,100), "linewidth",10), hold off, view(2)
>>> >  Is this not the expected behavior?
>>
>> When I do this, I get the attached image. I would have expected to see
>> the sine curve on top of the image. This happens both with and without
>> the call to 'view'.
>>
>> So, no, this is not the expected behaviour. Images should always be
>> shown below other graphics objects. This is really handy, when doing
>> image processing as it allows you to easily plot positions of objects on
>> top of the image.
>>
>> Søren
>
> Well, here is what I get using current development system and Fedora
> FC11_x86_64.  Attached.  Curve is on top.
>
> I used:
> backend("fltk")
> imshow (rand (100, 100, 3))
> hold on
> plot3 (1:100, 50*sin(linspace (0, 2*pi,100))+50,ones(1,100),"linewidth",10)
> hold off
> view(2)
>

Maybe it's a driver issue? -- what graphics card do you use, and what
is the output of
glxinfo|grep render

Shai



reply via email to

[Prev in Thread] Current Thread [Next in Thread]