[producer-users] Producer - SSH - and Shaders

Don Burns don at andesengineering.com
Thu Aug 30 00:18:12 PDT 2007


Hi Jason,

The warning you are seeing is simply a test of the named extension and fails
because of the remote rendering.  It has little to do directly with whether
shaders are working or not.

However, I would suspect that there is something to do with the creation of
the graphics context and the capability to run shaders with a remote
context.

I've not tried doing shaders remotely, so you are ahead of me on testing
this, and unfortunately, I am currently on a biz trip and not able to sit
and experiment with this in response to your email until next week.

But here is what I would first try and you could try it yourself.  In
Producer/src/Producer/RenderSurface_X11.cpp, the graphics context is created
with the fourth argument hard coded to GL_TRUE, which means that it intends
to do rendering with a direct context rather than through the X server.
Experiment by setting that to GL_FALSE, recompiling Producer and seeing if
it works.  This is where I would start.

The line I'm referring to is at line 248 in RenderSurface_X11.cpp in the
current CVS.

Let me know if that works.  If so, the next step would be to analyze the
connection to the xserver to choose between GL_TRUE or GL_FALSE in the call
to glXCreateContext.

-don

On 8/29/07, Jason <jmuronis at gmail.com> wrote:
>
> Hi producer-users,
>
> I have two machines (let's call them 1 and 2) with identical hardware
> and software that run an application using OpenSceneGraph.
>
> When I run my program locally on machine 1 or locally on machine 2,
> everything works as expected. However, whenever I ssh -X from machine
> 1 to machine 2 or vice versa, everything looks fine graphically except
> the shaders I am using don't seem to be executing.
>
> According to my debug statements, the shaders are loading properly,
> but they just don't seem to be executing.
>
> Also when I ssh -X and then run the program, I get a warning that
> says: warning: Producer::RenderSurface, under the X11 environment has
> tested the glXWaitVideoSyncSGI extension and found it to be be working
> proplery...
>
> Does this warning have anything to do with my shaders no functioning
> properly when I ssh -X into a machine?
>
> Thanks,
> Jason
> _______________________________________________
> producer-users mailing list
> producer-users at andesengineering.com
> http://www.andesengineering.com/mailman/listinfo/producer-users
> http://www.andesengineering.com/Producer/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.andesengineering.com/pipermail/producer-users/attachments/20070830/6da01c57/attachment.htm 


More information about the producer-users mailing list