|
|
Charles & Paula wrote:
>
> As far I understood how are the .pov files, there are made of spheres, lines
> and triangles with a colour, position in the space, etc. Why these
> attributes can't be transfered in an other file format ?
> Maybe I'm wrong in my believes ?
Ok the long answer. The main problem is parsing the povray language used.
In modelling programs and most 3D file formats there are very strick rules
about the placement and attributes of an object. Povray on the other hand
has many different methods of describing an objects shape, location,
and it's attributes. None of these are very rigid and in fact one of the
major attractions of POV-Ray is this flexibility in describing an objects
attributs.
A common question that arises is why doesn't the program Moray have the
ability to directly import .pov files or why has no one written a conversion
program to parse .pov files. Since I answered this question quite recently
for someone else I will simply include my replies to these questions here.
////////////
What you need to understand is the complexity of the conversion process.
In order for Moray to be able to read .pov files you would essentially
have to build a Pov language parser into Moray that is equal to the
language parser already available *AS* POV-Ray. I have talked with the
author or Moray and he is not happy with the idea of adding that much
overhead to the program plus the complex programming task involved. It
just is not as simple as you would think or it would have been done already.
To make it as a stand alone conversion program still has the problems
associated with writing a program what will parse the Pov language
and then convert it into a format that Moray would recognize. Again
it is not a weekend project that just anyone could do. It would take
someone with as much experience as the programmers of POV-Ray to write
such a parser and there are few of those around that have time on
their hands for this type of work. In fact if someone actually did
write such a program they would likely want to be paid for it instead
of offering it for free like many of the other Pov related utilities
are.
////////////
In the above examples you can substitute Moray with just about any
3d format that you choose because the explaination is fairly consistent
for all 3d file formats. Povray uses mathimatical objects. Most other
3D formats use the location of vertices for triangles that make up the
object. Again it is not an easy conversion process and in some cases
is simply not possible at all.
I hope this satisfies your curiosity.
--
Ken Tyler - 1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|