POV-Ray : Newsgroups : povray.macintosh : EPStoPOV 1.0: convert EPS to POV-Ray object Server Time
24 Nov 2024 08:39:18 EST (-0500)
  EPStoPOV 1.0: convert EPS to POV-Ray object (Message 1 to 9 of 9)  
From: olivier wailly
Subject: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 1 Sep 1999 17:27:27
Message: <37cd9a3f@news.povray.org>
EPStoPOV 1.0 is an Hypercard stack that allow you to create prism, lathe,
sor and polygon from drawings saved as eps files.

http://www.geocities.com/CapeCanaveral/Galaxy/8018/


Post a reply to this message

From: TonyB
Subject: Re: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 2 Sep 1999 09:49:46
Message: <37CE6BE8.F002D6AC@panama.phoenix.net>
Is there any possibility you could port this in some way to PC (pref. windows
or dos)? I have Illustrator and I would like to use it to do the same things
you now allow Mac POVers to do. Thanks in advance for any help you can
provide.

--
Anthony L. Bennett
http://welcome.to/TonyB

Non nova, sed nove.


Post a reply to this message

From: Steve
Subject: Re: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 2 Sep 1999 14:14:08
Message: <37CEC014.D7937C18@puzzlecraft.com>
I have a tutorial on how to do this by hand. It also allows you to create
object_sweeps and animation paths from any vector drawing application. It's a
little tedious for complex paths. See
http://www.puzzlecraft.com/cm/ClockMod.html

Also, Chris Colefax has just pre-released a major upgrade (thanks Chris!) to the
Spline macro. I am attempting to write a tutorial for it. It will allow you to
do a bewildering number of things with splines once you make the EPS-2-POV
conversion.

steve

TonyB wrote:

> Is there any possibility you could port this in some way to PC (pref. windows
> or dos)? I have Illustrator and I would like to use it to do the same things
> you now allow Mac POVers to do. Thanks in advance for any help you can
> provide.
>
> --
> Anthony L. Bennett
> http://welcome.to/TonyB
>
> Non nova, sed nove.


Post a reply to this message

From: TonyB
Subject: Re: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 3 Sep 1999 15:31:14
Message: <37D01309.B42E348E@panama.phoenix.net>
> I have a tutorial on how to do this by hand. It also allows you to create
> object_sweeps and animation paths from any vector drawing application. It's a
> little tedious for complex paths. See
> http://www.puzzlecraft.com/cm/ClockMod.html

I know of your tutorial, but I don't see how to use a vector drawing program to
complement the clockmod include.

> Also, Chris Colefax has just pre-released a major upgrade (thanks Chris!) to the
> Spline macro. I am attempting to write a tutorial for it. It will allow you to
> do a bewildering number of things with splines once you make the EPS-2-POV
> conversion.

Cool. Just please tell me how to do the conversion.

--
Anthony L. Bennett
http://welcome.to/TonyB

Non nova, sed nove.


Post a reply to this message

From: Steve
Subject: Re: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 3 Sep 1999 16:42:43
Message: <37D03469.E8923623@puzzlecraft.com>
TonyB wrote:

> I know of your tutorial, but I don't see how to use a vector drawing program to
> complement the clockmod include.
>
>

It's Chapter 9. It describes how to write a bezier_spline from Adobe Illustrator or
any other vector drawing program. Chapters 10 and 11 cover the use of the spline in
animations.

Steve


Post a reply to this message

From: olivier wailly
Subject: R: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 4 Sep 1999 04:44:34
Message: <37d0dbf2@news.povray.org>
>Is there any possibility you could port this in some way to PC (pref. windows
>or dos)? I have Illustrator and I would like to use it to do the same things
>you now allow Mac POVers to do. Thanks in advance for any help you can
>provide.
>
>--
>Anthony L. Bennett
>http://welcome.to/TonyB
>
>Non nova, sed nove.
>

-----
I'm sorry but I'm not able to port my utility on PC platform. 
But I will try to explain you how its work.

You can surely open an eps file with a text editor. 
If you do that, you will find, after many eps code, something like this:

1879.5 2225.5 m
1888 2223 1926.5 2218 1927.5 2213 C
1928.5 2208 1932 2198 1927.5 2192.5 C
1923 2187 1880 2205.5 1880 2205.5 C
1880 2205.5 1865.5 2200.5 1875.5 2175.5 C
1885.5 2150.5 1912 2138.5 1924 2137.5 C
1936 2136.5 1961 2156 1961 2156 C
1961 2156 1976.5 2138.5 1957 2124 C
1937.5 2109.5 1903.5 2119 1898.5 2120.5 C
1893.5 2122 1842 2182 1836.5 2168 C
1831 2154 1827.5 2143.5 1830 2133 C
1832.5 2122.5 1865 2112.5 1865 2112.5 C
1888.5 2103 L
1862.5 2083.5 L
1797 2139 L
1797 2139 1790.5 2171 1806.5 2185.5 C
1822.5 2200 1820 2241.5 1806.5 2232 C
1793 2222.5 1780 2197.5 1780 2197.5 C
1771 2233.5 L
1771 2233.5 1852.5 2261 1861.5 2255 C
1870.5 2249 1925.5 2265 1925.5 2265 C
1925.5 2265 1951.5 2267 1953.5 2252.5 C
1955.5 2238 1931 2228 1916 2235 C
1901 2242 1904 2247.5 1885 2243.5 C
1866 2239.5 1842 2240.5 1841 2222 C
1840 2203.5 1838.5 2170 1846 2187 C
1853.5 2204 1858 2209 1859.5 2211.5 C
1861 2214 1871 2228 1879.5 2225.5 C

This lines are the coordinates of the points and control points of a curve.
"m" (or "moveto") is the first point of the curve. first number is x
coordinate, second y coordinate.
"c" (or "curve") indicate a curve with control points. Number 1 & 2 are x &
y of first control point, number 3 & 4 are x & y of second control point,
number 5 & 6 are x & y of the point of the curve.

So the 2 first lines mean the first segment: 
<1879.5, 2225.5>,<1888,2223>,<1926.5, 2218>,<1927.5, 2213>

To made the second segment, you have to repeat the last point of the
previous line (<1927.5, 2213>):
<1927.5, 2213>,<1928.5, 2208>,<1932, 2198>,<1927.5, 2192.5>

You can go on so for all of the "c" lines.

The "L" (or "lineto") lines are segment without control points. So you have
to add 2 times the last point of the previous line and repeat the last
point.
In my example first "L" line mean the segment:
<1865,2112.5>,<1865,2112.5>,<1888.5,2103>,<1888.5,2103>.

So the complete conversion of my example is:

  <1879.5,2225.5>,<1888,2223>,<1926.5,2218>,<1927.5,2213>,
  <1927.5,2213>,<1928.5,2208>,<1932,2198>,<1927.5,2192.5>,
  <1927.5,2192.5>,<1923,2187>,<1880,2205.5>,<1880,2205.5>,
  <1880,2205.5>,<1880,2205.5>,<1865.5,2200.5>,<1875.5,2175.5>,
  <1875.5,2175.5>,<1885.5,2150.5>,<1912,2138.5>,<1924,2137.5>,
  <1924,2137.5>,<1936,2136.5>,<1961,2156>,<1961,2156>,
  <1961,2156>,<1961,2156>,<1976.5,2138.5>,<1957,2124>,
  <1957,2124>,<1937.5,2109.5>,<1903.5,2119>,<1898.5,2120.5>,
  <1898.5,2120.5>,<1893.5,2122>,<1842,2182>,<1836.5,2168>,
  <1836.5,2168>,<1831,2154>,<1827.5,2143.5>,<1830,2133>,
  <1830,2133>,<1832.5,2122.5>,<1865,2112.5>,<1865,2112.5>,
  <1865,2112.5>,<1865,2112.5>,<1888.5,2103>,<1888.5,2103>,
  <1888.5,2103>,<1888.5,2103>,<1862.5,2083.5>,<1862.5,2083.5>,
  <1862.5,2083.5>,<1862.5,2083.5>,<1797,2139>,<1797,2139>,
  <1797,2139>,<1797,2139>,<1790.5,2171>,<1806.5,2185.5>,
  <1806.5,2185.5>,<1822.5,2200>,<1820,2241.5>,<1806.5,2232>,
  <1806.5,2232>,<1793,2222.5>,<1780,2197.5>,<1780,2197.5>,
  <1780,2197.5>,<1780,2197.5>,<1771,2233.5>,<1771,2233.5>,
  <1771,2233.5>,<1771,2233.5>,<1852.5,2261>,<1861.5,2255>,
  <1861.5,2255>,<1870.5,2249>,<1925.5,2265>,<1925.5,2265>,
  <1925.5,2265>,<1925.5,2265>,<1951.5,2267>,<1953.5,2252.5>,
  <1953.5,2252.5>,<1955.5,2238>,<1931,2228>,<1916,2235>,
  <1916,2235>,<1901,2242>,<1904,2247.5>,<1885,2243.5>,
  <1885,2243.5>,<1866,2239.5>,<1842,2240.5>,<1841,2222>,
  <1841,2222>,<1840,2203.5>,<1838.5,2170>,<1846,2187>,
  <1846,2187>,<1853.5,2204>,<1858,2209>,<1859.5,2211.5>,
  <1859.5,2211.5>,<1861,2214>,<1871,2228>,<1879.5,2225.5>

In some eps, you will perhaps find also "v" and "y" curves.

A "v" curve have no first control point but have a second control point so
you have to add 2 time the last point of the previous line:

............x1 y1 c
x2 y2 x3 y3 x4 y4 v

mean the segment:

<x1,y1>,<x1,y1>,<x2,y2>,<x3,y3>,<x4,y4>

A "y" curve have no second control point but have a first control point so
you have to repeat the last point of the line:

............x1 y1 c
x2 y2 x3 y3 x4 y4 y

mean the segment:
<x1,y1>,<x2,y2>,<x3,y3>,<x4,y4>,<x4,y4>

This conversion done you have to scale and translate your POV object at the
right place.

This is all wat make my utility. I think that it will be a game to do the
same for a programmer on PC (that I'm not!).

I suggest you to post this correspondence to the news
povray.binaries.programming or povray.programming, perhaps somebody will do
it, if it's not already done...

Best regards
----
Olivier Wailly
http://www.geocities.com/CapeCanaveral/Galaxy/8018/


Post a reply to this message

From: TonyB
Subject: Re: R: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 4 Sep 1999 12:46:45
Message: <37D13DFA.55E730B3@panama.phoenix.net>
Thank you very much for explaining the EPS format to me. I think that there are
several talented PC ANSI-C programmers out there that can get this done. I'm not
particularily good at C, unfortunately, so I doubt I will be the one to make this.
Again, thank you very much. =)

--
Anthony L. Bennett
http://welcome.to/TonyB

Non nova, sed nove.


Post a reply to this message

From: Henri Sivonen
Subject: Re: R: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 2 Dec 1999 09:05:24
Message: <henris-37CBFC.16055502121999@news.povray.org>
In article <37D13DFA.55E730B3@panama.phoenix.net>, TonyB 
<ben### [at] panamaphoenixnet> wrote:

> I think that there are
> several talented PC ANSI-C programmers out there that can get this done.

Wouldn't this be best implemented in Perl (or Java) to let the program 
run unmodified on different platforms?

--
Henri Sivonen
hen### [at] clinetfi
http://www.clinet.fi/~henris/


Post a reply to this message

From: Jon A  Cruz
Subject: Re: R: EPStoPOV 1.0: convert EPS to POV-Ray object
Date: 2 Dec 1999 11:08:30
Message: <38469998.31DC91EF@geocities.com>
Henri Sivonen wrote:

> In article <37D13DFA.55E730B3@panama.phoenix.net>, TonyB
> <ben### [at] panamaphoenixnet> wrote:
>
> > I think that there are
> > several talented PC ANSI-C programmers out there that can get this done.
>
> Wouldn't this be best implemented in Perl (or Java) to let the program
> run unmodified on different platforms?
>

Java would probably be a great idea, especially as you don't need high fps
real-time conversion. ;-)


--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.


Post a reply to this message

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