can opencascade be executed in a VPS account

Hi there,

Can opencacade be executed in a headless VPS account, im considering trying opencascade in a shared hosting account, and the support team has asked me to make sure whether opencascade can run on a headless enviroment as well as centos.

the idea is to be able to run opencascade on a shared webhosting account that allows c++ to be executed.

i am checking hostgator they have a vps account that allows root access + c++ execution.

any ideas?

Best,

AlexP

Denis Barbier's picture
Denis Barbier's picture

There are several workarounds: 1) apply the patch found in that thread, 2) remove OSD_FontMgr.cxx from adm/make/TKernel/Makefile.am, 3) grab git sources of OCE (a different solution has been implemented after 0.5.0, but it relies on CMake and some work is needed to backport it to Autotools).

AP's picture

Dear Denis,

Thank you very much, exactly what i was looking for.

I have some questions, it seems you have already done this before, "running opencascade on a server for shape processing".

can you create a viewport in memory without displaying on the server, make an opengl framebuffer, blit the content of the viewport to the opengl framebuffer, and then output an image of the framebuffer.

so i guess the question is , can the occ view widget be loaded without x11 and can it be drawn into a framebuffer, rather than using a window context from x11 or MS-windows per say.

I was just thinking about webgl, if the browser is webgl enabled you could use it, but in the event the browser is not webgl enabled, the server could do the viewport operations in the background and output images to the document, if used with ajax, a very cheap 3d solution could be made to operate on a 3d model directly from the browser, might be slow, but could be interesting.

Best,

AlexP

Denis Barbier's picture

Hi Alex,

I do not use OCC visualization (and do not know enough about visualization in general), so I cannot answer your questions. But you can use OCC to get a tesselation from a CAD shape, and pass it to any 3D renderer. See for instance what Thomas did at http://webgl.pythonocc.org/