POV-Ray : Newsgroups : moray.dos : Povray File Parse Server Time
9 Jun 2026 13:43:10 EDT (-0400)
  Povray File Parse (Message 6 to 9 of 9)  
<<< Previous 5 Messages Goto Initial 9 Messages
From: Thomas Charron
Subject: Re: Povray File Parse
Date: 16 Jul 1998 13:49:03
Message: <35AE262D.64CC0984@nermail.ups.com>
Johannes Hubert wrote:

> Maybe you want to check out Thomas Baier's POB-SDK. (Find a link to his page
> on the Moray Download page.)
>
> It includes a custom made version of POV-Ray (for DOS) which reads a POV
> script and outputs everything in it into a POB file (which is a binary
> format). Another tool in the package can read such a POB file and generate a
> POV script from it. This resulting script does not have any whiles, ifs etc.
> but only declarations of the objects that were generated by the actual first
> script.

    Hrm..  Ya, this would do it..  I'd only need to do it once, then import the
object into the modeller from the Povray script generated..  Maybee a couple of
times for random effect scripts..  Thanks for the tip!  I'll keep ya posted..

    Thomas Charron


Post a reply to this message

From: Johannes Hubert
Subject: Re: Povray File Parse
Date: 17 Jul 1998 07:14:12
Message: <35af23f4.0@news.povray.org>
Thomas Charron wrote in message <35AE262D.64CC0984@nermail.ups.com>...
>    Hrm..  Ya, this would do it..  I'd only need to do it once, then import
the
>object into the modeller from the Povray script generated..  Maybee a
couple of
>times for random effect scripts..  Thanks for the tip!  I'll keep ya
posted..


Actually, have you thought about using UDOs?

UDOs work like this:

You have two files: one UDO file and one INC file.
The UDO file follows a certain standard and describes how the object should
look in Moray.
The INC file can contain *any* POV-Ray compliant syntax (even while-loops,
other includes etc.) and describes how the object looks in POV-Ray.

In Moray you manipulate (translate, scale, rotate, even texture) the object
representation as it is read from the UDO file. But when exporting, Moray
doesn't export this UDO description or any POV-Ray primitives or such, but
simply an include directive to include the INC file (with all the
manipulations applied).

This way, you can have *any* POV-Ray object (or collection of objects) as an
object in Moray.

The only drawback is, that you have to write the UDO file by hand, to create
an adequate Moray-representation of your object. But that isn't to hard
either, since UDO files are text files and essentially only contain a list
of 3D vertices and a list of edges between them.

Check it out!

Johannes.


Post a reply to this message

From: Thomas Charron
Subject: Re: Povray File Parse
Date: 17 Jul 1998 13:56:39
Message: <35AF7974.6A2C5A24@nermail.ups.com>
Well, that's all and well, but it doesn't solve the fact that I want to
generate some of these objects from publically available .INC files that use
macro's to create the objects.  I COULD write my own, but to be totally honest,
I don;t have the time with 5 side-projects, and trying to get one or two entries
to irtc finished up..

    Thomas Charron

Johannes Hubert wrote:

> Thomas Charron wrote in message <35AE262D.64CC0984@nermail.ups.com>...
> >    Hrm..  Ya, this would do it..  I'd only need to do it once, then import
> the
> >object into the modeller from the Povray script generated..  Maybee a
> couple of
> >times for random effect scripts..  Thanks for the tip!  I'll keep ya
> posted..
>
> Actually, have you thought about using UDOs?
>
> UDOs work like this:
>
> You have two files: one UDO file and one INC file.
> The UDO file follows a certain standard and describes how the object should
> look in Moray.
> The INC file can contain *any* POV-Ray compliant syntax (even while-loops,
> other includes etc.) and describes how the object looks in POV-Ray.
>
> In Moray you manipulate (translate, scale, rotate, even texture) the object
> representation as it is read from the UDO file. But when exporting, Moray
> doesn't export this UDO description or any POV-Ray primitives or such, but
> simply an include directive to include the INC file (with all the
> manipulations applied).
>
> This way, you can have *any* POV-Ray object (or collection of objects) as an
> object in Moray.
>
> The only drawback is, that you have to write the UDO file by hand, to create
> an adequate Moray-representation of your object. But that isn't to hard
> either, since UDO files are text files and essentially only contain a list
> of 3D vertices and a list of edges between them.
>
> Check it out!
>
> Johannes.


Post a reply to this message

From: Johannes Hubert
Subject: Re: Povray File Parse
Date: 20 Jul 1998 12:17:01
Message: <35b35f6d.0@news.povray.org>
Thomas Charron wrote in message <35AF7974.6A2C5A24@nermail.ups.com>...
>    Well, that's all and well, but it doesn't solve the fact that I want to
>generate some of these objects from publically available .INC files that
use
>macro's to create the objects.  I COULD write my own, but to be totally
honest,
>I don;t have the time with 5 side-projects, and trying to get one or two
entries
>to irtc finished up..


I don't see the problem :-) since the INC file of the UDO/INC pair can
contain any POV-Ray code, even #includes or even macros (POV 3.1 etc.)

The only work would be to write the UDO file, with a nice and suitable
representation of the object in Moray (made up out of vertices and
connecting edges).
I guess that writing such an UDO even for a complex object can be faster
than going through a lot of conversion steps.

Johannes.


Post a reply to this message

<<< Previous 5 Messages Goto Initial 9 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.