POV-Ray : Newsgroups : povray.general : Small Request (maybe). Server Time
1 Nov 2024 10:19:39 EDT (-0400)
  Small Request (maybe). (Message 1 to 10 of 10)  
From: Steve
Subject: Small Request (maybe).
Date: 24 Jul 2000 18:53:15
Message: <slrn8nphrp.781.steve@zero-pps.localdomain>
I'd like to request that an unpacked version of POV with all it's 
bits for each platform be put somewhere on the server.  

The reason why I ask this is that today I was toying with the idea
of producing an "Insert" menu for emacs a la Win95 version of POV.

I know that all the info for the Win95 version is kept in a file that
you can customise, so I wanted a copy of that file and couldn't find
one anywhere on the POV server without d/l'ing a Win version which 
I have now way of unpacking as I don't have access to any Microsoft
based machines.  

My solution was to email Ken, I didn't want to post a request here 
for the Insert-Menu file because I'd probably get hundreds in my
mail.  

My grand plan is to write a perl script that will produce the emacs
menu from the Insert-Menu file that's used for the other platforms,
that way as POV is upgraded, the perl script just needs to be run
on the standard Insert-Menu file and it will produce a new Insert
menu for emacs.    

I also don't think it's fair on Ken that everyone has to go to him
for all these little bits and pieces.  Maybe I should have emailed
Mark instead? 


-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

 11:23pm  up 9 days, 21:50,  2 users,  load average: 1.02, 1.01, 1.00


Post a reply to this message

From: Alan Kong
Subject: Re: Small Request (maybe).
Date: 24 Jul 2000 19:07:23
Message: <jripns8c7qda1gshprp5r99sr250obvk9e@4ax.com>
On 24 Jul 2000 18:53:15 -0400 ste### [at] zeroppsuklinuxnet (Steve) wrote:

>My grand plan is to write a perl script that will produce the emacs
>menu from the Insert-Menu file that's used for the other platforms,
>that way as POV is upgraded, the perl script just needs to be run
>on the standard Insert-Menu file and it will produce a new Insert
>menu for emacs.

  Steve, you might want to take a look at the Insert Menu before using a
perl script to generate an emacs version - I found that many of the menu
items needed substantial modification to suit my needs, although it
provides a good baseline for writing an updated Insert Menu. Your
mileage may vary, accordingly.

-- 
Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
http://www.povray.org - Home of the Persistence of Vision Ray Tracer


Post a reply to this message

From: Ken
Subject: Re: Small Request (maybe).
Date: 24 Jul 2000 19:29:32
Message: <397CCFD6.AFA130E2@pacbell.net>
Steve wrote:

> My solution was to email Ken,...

<snip>

> I also don't think it's fair on Ken that everyone has to go to him
> for all these little bits and pieces.  Maybe I should have emailed
> Mark instead?

Ken does not mind. It makes him feel needed, wanted, and makes
him feel like he is fulfilling a vital role in the POV-Ray
community.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Steve
Subject: Re: Small Request (maybe).
Date: 24 Jul 2000 19:48:24
Message: <slrn8npk3t.7op.steve@zero-pps.localdomain>
On Mon, 24 Jul 2000 16:07:19 -0700, Alan Kong wrote:
>On 24 Jul 2000 18:53:15 -0400 ste### [at] zeroppsuklinuxnet (Steve) wrote:
>
>>My grand plan is to write a perl script that will produce the emacs
>>menu from the Insert-Menu file that's used for the other platforms,
>>that way as POV is upgraded, the perl script just needs to be run
>>on the standard Insert-Menu file and it will produce a new Insert
>>menu for emacs.
>
>  Steve, you might want to take a look at the Insert Menu before using a
>perl script to generate an emacs version - I found that many of the menu
>items needed substantial modification to suit my needs, although it
>provides a good baseline for writing an updated Insert Menu. Your
>mileage may vary, accordingly.

My idea at the moment is to base it on counting braces {} when both
variables are more that zero and equal that's the end of an object,
it does some stuff, sets the variables back to 0 and starts again.

As you say I need to get a look at the file, (havn't heard from Ken 
yet).  I do remember having to change some of the items to actually
get them to work like the prisam object.  

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

 12:14am  up 9 days, 22:40,  2 users,  load average: 1.30, 1.28, 1.14


Post a reply to this message

From: Warp
Subject: Re: Small Request (maybe).
Date: 25 Jul 2000 05:01:57
Message: <397d5785@news.povray.org>
Steve <ste### [at] zeroppsuklinuxnet> wrote:
: I'd like to request that an unpacked version of POV

  Why unpacked? Why not packed with a common packer, like zip or something
similar?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Small Request (maybe).
Date: 25 Jul 2000 06:01:22
Message: <397d6572@news.povray.org>
In article <slr### [at] zero-ppslocaldomain> , 
ste### [at] zeroppsuklinuxnet (Steve) wrote:

> I know that all the info for the Win95 version is kept in a file that
> you can customise, so I wanted a copy of that file and couldn't find
> one anywhere on the POV server without d/l'ing a Win version which
> I have now way of unpacking as I don't have access to any Microsoft
> based machines.

If you refer to the original template menu file, the specification is in the
Mac documentation...


         Thorsten



(The following format described is rev 2, 9/25/95 [esp].  The built-in
POV-Ray template importer reads a specially formatted text file, and builds
a multi-level (hierarchical) menu structure that connects specific menu
items to blocks of text that can be automatically inserted into the user's
text file at the current cursor insertion point, simply by choosing that
menu item.  The user imports the text once (or has it automatically imported
every time they start POV-Ray). This process builds the menu structure.
Then whenever the user wants a particular item, he chooses it off the
TEMPLATES menu, and it is inserted into the current text file.  Although the
syntax and code of the template reader can handle up to 4 menus deep, it is
suggested to keep it down to 2 levels and group things in a fairly flat and
logical manner.  You are free to rearrange the items and add your own.  As
long as you follow the file format described below, your changes will appear
in the Templates menu the next time you run POV-Ray.

When the Import Template reader sees a command string in the form @xxx,
starting in the first character of the line, it reads the line and processes
it accordingly.  The 4-character command is not case sensitive, so "@mt1"
and "@Mt1" are legal, though I would prefer to have them remain all lower
case. Note that empty lines are not skipped, they are added to the current
menu item text. If this weren't done, you couldn't add any blank lines as
part of a template into your file.  The side effect of this is that if you
want to separate items in the template file for legibility, you MUST use the
@com comment command.

COMMANDS
@com.Any text here... - this is a comment line, ignored by the parser.

@mt1.Title - this means define a new level-1 menu, and give it the name
"Title". All level 2 menus will go under this level 1 menu, until another
level 1 menu is defined.  There must not be anything else on these special
lines.

@mt2.Title2 - this means define a new level-2 menu (under a previously
defined level 1 menu) and give it the name "Title2".  Any lines immediately
following this line will be used as the text to be inserted.  Blank lines
are valid and counted, so that the user can insert blank lines.  The end of
the text block is determined when the next @xxx command is reached.

(Yes, I know you're thinking, "Oh good!  I can define @mt3 & @mt4!"  Let's
not do this, I don't think it is a good U.I. idea :-)

@@@@ - This is an end-of-file mark, ignore anything after this in the file.

TEMPLATE EXAMPLE:

@mt1.Statements
@mt2.File Boilerplate
// Persistence of Vision RayTracer Scene description file
// File: ??.pov
// Version: 3
// Description: ??
// Date: mm/dd/yy
// Author: ??
//

@mt2.Background
// Set the color of the background (sky)
background { color red 0.1 green 0.3 blue 0.8 }
@mt2.Camera
// set viewer's position in the scene
camera
{
  location  <0,  1, -6>   // <X Y Z>
  direction 2.0*z         // which way are we looking <X Y Z>
  up        y             // which way is +up <X Y Z>
  right     4/3*x         // which way is +right <X Y Z> and aspect ratio
  look_at   <0,  0,  0>    // point center of view at this point <X Y Z>
}
@mt1.Textures
@mt2.Pigment-rgb
  pigment { color rgb <1,2,3> }
@mt2.Pigment-agate
  pigment { agate agate_turb 1 }
@@@@

That was an end-of-file (eof) token, so all this text after it is ignored.


Post a reply to this message

From: Steve
Subject: Re: Small Request (maybe).
Date: 25 Jul 2000 12:13:42
Message: <slrn8nr2r2.8oq.steve@zero-pps.localdomain>
On 25 Jul 2000 05:01:57 -0400, Warp wrote:
>Steve <ste### [at] zeroppsuklinuxnet> wrote:
>: I'd like to request that an unpacked version of POV
>
>  Why unpacked? Why not packed with a common packer, like zip or something
>similar?

Yes you're correct there just a simple zipped up version would be great.

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  1:35pm  up 10 days, 12:01,  3 users,  load average: 1.06, 1.01, 1.00


Post a reply to this message

From: Steve
Subject: Re: Small Request (maybe).
Date: 25 Jul 2000 12:13:43
Message: <slrn8nr3c5.8oq.steve@zero-pps.localdomain>
On Tue, 25 Jul 2000 12:01:17 +0200, Thorsten Froehlich wrote:
>In article <slr### [at] zero-ppslocaldomain> , 
>ste### [at] zeroppsuklinuxnet (Steve) wrote:
>
>> I know that all the info for the Win95 version is kept in a file that
>> you can customise, so I wanted a copy of that file and couldn't find
>> one anywhere on the POV server without d/l'ing a Win version which
>> I have now way of unpacking as I don't have access to any Microsoft
>> based machines.
>
>If you refer to the original template menu file, the specification is in the
>Mac documentation...
>

Thanks, Ken has sent me a zipped copy of all of the files in their 
directories.  I need to write the menu in lisp so I'll do some of it manually
in order to get the hang of it and find out exactly what's required and
then write a perl script that will read the files and directories and produce
the appropriate lisp file with the items to be included.

Due to the capabilities of lisp I think it's going to be possible to edit
individual items from the Insert menu whenever you want, and save the changes
there and then, I don't think that you can do that with the windows version. 

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  1:35pm  up 10 days, 12:01,  3 users,  load average: 1.06, 1.01, 1.00


Post a reply to this message

From: Ken
Subject: Re: Small Request (maybe).
Date: 25 Jul 2000 21:22:18
Message: <397E3BBE.9F176F71@pacbell.net>
Steve wrote:

> Due to the capabilities of lisp I think it's going to be possible to edit
> individual items from the Insert menu whenever you want, and save the changes
> there and then, I don't think that you can do that with the windows version.

When I have customized them in the past I simply open them in the POV-Ray
for Windows editor. Save and use. Simple no ?

P.S. one or two of the files I sent you may have been modified from
their original content. Nothing that would make them unusable or
very different from those supplied however.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Steve
Subject: Re: Small Request (maybe).
Date: 26 Jul 2000 17:40:05
Message: <slrn8nuhhq.bh9.steve@zero-pps.localdomain>
On Tue, 25 Jul 2000 18:15:42 -0700, Ken wrote:
>
>
>When I have customized them in the past I simply open them in the POV-Ray
>for Windows editor. Save and use. Simple no ?
>
>P.S. one or two of the files I sent you may have been modified from
>their original content. Nothing that would make them unusable or
>very different from those supplied however.
>

This would be simpler, right click on the menu item and it opens for editing.

One of my main reasons fro undertaking this project is that we seem to be 
getting quite a few new users around today who've never seen the Win95 
distribution of POV, which is a lot more user friendly to the beginner than 
the Linux version.  I'm sure that you'll agree that in the early days you
can learn a lot from using the insert menu.  I'd think it's also useful
for the more experienced users to check up on the syntax of a particular
command if they're not sure of it.

Thanks for your help Ken.  

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  8:56pm  up 11 days, 19:22,  2 users,  load average: 1.00, 1.00, 1.00


Post a reply to this message

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