Run Processing within Tomcat-Server
in
Programming Questions
•
3 years ago
Hi all,
I´m working on an application for dynamically generating image-based views of 3d-models. As I don´t want to depend on applets, I´d like to use Processing simply to load and render images of 3d-models and pass them back as an image. The whole thing should work as a web-service relaized as spring-servlet, which is called by the client. The web-service contains a PApplet-class which should generate the views and pass them back. As I don´t want to render to screen, I´m using a PGraphics-instance. Though the server starts up correctly (even creating the PGraphics rendercontext without any complains), it crashes completely as soon as I call beginDraw() of my PGraphics-object. I have searched quite a while, but I haven´t found anything regarding such a problem. This is why I´d like to ask wether or not this architecture might work and wether processing can be executed within a tomcat-server. If not, I´ll try a different approach...
Thanks in advance,
Patrick
1