|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I need to generate a POV-Ray scene file from a scene that has been
programmed in OpenGL. Is there an implementation of the part of the
OpenGL API that deals with geometry that would output POV scene files
instead of rendering?
--
Henri Sivonen
hsi### [at] niksulahutfi
http://www.hut.fi/u/hsivonen/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <hsi### [at] netplexaussieorg>,
Henri Sivonen <hsi### [at] niksulahutfi> wrote:
> I need to generate a POV-Ray scene file from a scene that has been
> programmed in OpenGL. Is there an implementation of the part of the
> OpenGL API that deals with geometry that would output POV scene files
> instead of rendering?
As far as I know, there is nothing like that currently in existance. It
would not be difficult to do for a small subset of OpenGL, but would be
impossible for the more complex features: OpenGL is just very different
from the POV scene language, and the algorithm is very different from
raytracing, many things just don't translate.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <hsi### [at] netplexaussieorg> , Henri
Sivonen <hsi### [at] niksulahutfi> wrote:
> I need to generate a POV-Ray scene file from a scene that has been
> programmed in OpenGL. Is there an implementation of the part of the
> OpenGL API that deals with geometry that would output POV scene files
> instead of rendering?
Hi Henri,
Nice to see you are still out there and using a Mac.
I am not aware of any library that will do it, but assuming you have just
meshes, I think those can be converted without too much work. But it really
depends on what you have. Of course, converting textures and such will be a
little bit more difficult.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3df9e374@news.povray.org>,
"Thorsten Froehlich" <tho### [at] trfde> wrote:
> In article <hsi### [at] netplexaussieorg> , Henri
> Sivonen <hsi### [at] niksulahutfi> wrote:
>
> > I need to generate a POV-Ray scene file from a scene that has been
> > programmed in OpenGL. Is there an implementation of the part of the
> > OpenGL API that deals with geometry that would output POV scene files
> > instead of rendering?
>
> Hi Henri,
>
> Nice to see you are still out there and using a Mac.
Hi! Yes, I'm still a Mac user but on the OS X side nowadays.
> I am not aware of any library that will do it, but assuming you have just
> meshes, I think those can be converted without too much work. But it really
> depends on what you have. Of course, converting textures and such will be a
> little bit more difficult.
I ended up implementing the required (very small) subset of the OpenGL
API myself in such a way that the function calls generate POV scene code.
We've got a labyrinth made with OpenGL. The textures for the walls,
floor and the ceiling are now prerendered in POV-Ray using the
orthographic camera. When the labyrinth app is compiled against the
"povgl" implementation, it generates the .pov files for the textures and
when it is compiled against the real OpenGL library, it uses the
POV-rendered textures.
This way, we get to use nice procedural textures from POV-Ray's include
library and we get per-texture-pixel (diffuse) shading with cool
area_light shadows instead of OpenGL's per-vertex shading without
shadows.
--
Henri Sivonen
hsi### [at] niksulahutfi
http://www.hut.fi/u/hsivonen/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |