1 Mar 03:23
Re: Mayavi2 in Sage (was Re: mayavi offscreen rendering)
On Fri, Feb 27, 2009 at 10:03 AM, Prabhu Ramachandran <prabhu@...> wrote: > On 02/26/09 18:59, Prabhu Ramachandran wrote: >>> >>> When I get this resolved, I would be able to start using mayavi in >>> Sage notebook over the web, so it'd be really awesome. >> >> Yes, I had wanted to get there too but thanks to too many other things I >> never got around to this. The big problem is that offscreen rendering is >> kind of cheating on the Mac/Linux since it does require a real window. >> >> I think the cleanest option to do this for sage would be to build with >> Mesa + OSMesa rather than OpenGL but I haven't tried this. This will not >> produce any screen output but will produce the pictures you want without an >> X-connection. It will also not make use of any acceleration on your card. >> I think this is a pretty solid option that we can use for sage and it will >> end up being a big win. I am trying out a mesa build now and will see how >> that goes. > > OK after some pain and a little help from Dave Cole at Kitware, I've figured > out how to do this pretty reliably. Doing this will allow you to use VTK > and therefore TVTK/Mayavi completely headless. It will do all the rendering > in software, you can still use the UI if you want to though but the > offscreen option is what will be most useful for the sage notebook. I guess > if you have the right card and can use the dri version of mesa you could > benefit from some h/w acceleration too. But anyways, this is how you set > things up: > > Build a recent version of mesa. I tried with the version that was installed > via ubuntu -- 7.0.3-rc2. 7.0.4 would work as would 7.2 but 7.2 is(Continue reading)
RSS Feed