ospray icon indicating copy to clipboard operation
ospray copied to clipboard

Support for POVRay-like scripts to render a whole scene?

Open heriberto-delgado opened this issue 4 years ago • 3 comments

This is an actual, real need I have in a process performed by the company I work for. We use POVRay to generate some renderings, but noticed that the tool performs way too slow for our needs - understandably so, since it is a CPU-only tool. When asked whether the tool will ever get GPU or any kind of acceleration support, they outright rejected the request.

I just discovered this today, and my first impression is it looks like a promising POVRay replacement for our internal processing - the only thing I would like to confirm is, will we ever be able to generate a script (any script - there is no need for it to be in POVRay language or anything) with the required scene and tell this lib / tool, in one single step, to render it? Or is this something we need to tackle in a program using the lib?

heriberto-delgado avatar Nov 11 '21 18:11 heriberto-delgado

I'd say yes, but rather by using OSPRay Studio (on GitHub), an application using OSPRay for rendering. With Studio you can use its batch mode to render scenes / scripts, either via existing importers (e.g. glTF) or by writing your own importer-plugin. Studio also has a Python interface to script the scene.

johguenther avatar Nov 11 '21 19:11 johguenther

If you contact me with an OSPRay Studio issue, I will be happy to help plan out a solution to your needs. Studio does have an SDL, which is a json representation of our internal scene graph format. And, this can be scripted. Additionally, scenes can be scripted in python.

BruceCherniak avatar Dec 29 '21 23:12 BruceCherniak

Hello,

Are you still interested in this request? If so, I recommend that we transfer this issue over to OSPRay Studio and create what you need there. I’m happy to help.

BruceCherniak avatar Apr 13 '22 12:04 BruceCherniak