POV-Ray : Newsgroups : povray.binaries.utilities : postscript/pdf to POVRay prism : postscript/pdf to POVRay prism Server Time
30 Apr 2024 02:07:23 EDT (-0400)
  postscript/pdf to POVRay prism  
From: Ross Martin
Date: 7 Mar 2003 15:53:21
Message: <3e6906c1@news.povray.org>
Hi Everyone,

I wrote the attached utility to convert vector-type (not bitmapped)
postscript/pdf files into POVRay prisms.  It works under Linux.
The first step is to "flatten" the postscript to a standard form
using the pstoedit package (available separately).  Then you run my
perl script to convert the "flattened" postscript into Prism statements.

A demonstration is included to show each step.  It converts some
postscript demo files and a latex document into prisms and renders
them.  The demo image is attached.

There are two options for textures -- either the original postscript
colors can be applied, or the prisms can be left untextured so that
a uniform texture can be applied later.

Since most two-dimensional things can be converted to postscript
by printing to a file, this utility should make it possible to convert
most 2-dimensional objects into POVRay prisms.

This package works for the few examples I tried. It may still need
improvement to deal with more complicated files.

I hope you find it useful!

Ross


Post a reply to this message


Attachments:
Download 'eps2pov.tgz.gz' (126 KB) Download 'main.jpg' (27 KB)

Preview of image 'main.jpg'
main.jpg


 

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