Thanks for the tips from both cpinson and Robert. I can install X11, so
Xvfb looks like just the ticket for minimal code change.

In the longer term, I'd prefer not to be forced to install X11 and thus
might follow up Robert's suggestion of playing with SceneView.

Cheers!
Andrew

cpinson wrote:
> You can test with Xvfb, we use it to make test on servers that have
> not gfx cards only an X install
> eg
> Xvfb :9 -ac -nolisten TCP -screen 0 1024x768x24 &
> and use :9 to run your X application (and it works with glx)
>
> maybe it can help
>
>
> Robert Osfield wrote:
>> Hi Andrew,
>>
>> Producer relies upon X11 so you won't be able to use it.
>>
>> I don't know if what you are after is possible, but the first place to
>> look would be getting a bare OpenGL application working, you'll need
>> to open a graphics somehow though, without GLX you'll need something
>> else, I'm not familiar with mesa, but perhaps it has support.
>>
>> Once you have a basic OpenGL app working next step would be to create
>> an OSG app, based around SceneView.  See the osgsimple example for
>> inspiration.
>>
>> Robert.
>>
>> On 7/20/06, Andrew Straw <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I wonder if there's a recipe for rendering completely in software,
>>> completely offscreen. What I'd like to do is run some OSG
>>> simulations on
>>> linux servers with no video cards, or even X11, installed. On my Ubuntu
>>> Dapper system, the libgl1-mesa-swrast package apparently provides
>>> pure-software OpenGL, but I so far haven't found any success trying to
>>> use this method.
>>>
>>> I've tried this using pbuffers from Producer, using the following line:
>>>
>>> camera1->getRenderSurface()->setDrawableType(
>>> Producer::RenderSurface::DrawableType_PBuffer );
>>>
>>> Unfortunately, I get:
>>>
>>> RenderSurface::realize() - unable to open display ":0.0"
>>>
>>> When I try this approach it seems that the code in
>>> RenderSurface_X11.cpp
>>> calls XOpenDisplay( dpyname ) which returns a null pointer. (This is in
>>> OSG 1.0.)
>>>
>>> So, the question is - is there a recipe for offscreen, software-only
>>> rendering? If not, any pointers to get me starting in the right
>>> direction?
>>>
>>> Cheers!
>>> Andrew
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://openscenegraph.net/mailman/listinfo/osg-users
>>> http://www.openscenegraph.org/
>>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to