|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Can anyone suggest utility or give some advice on writing
a pov mesh to dxf file convertor.
I'd like to generate a triangle mesh in pov, write it to a file then convert
that
file to dxf for use in vue d'espirit. (Giles's make grass macro is far
superior to any grass that can be created in vue)
Comments and suggestions appreciated
Gail
********************************************************************
* gsh### [at] monotixcoza * Reality.dat not found *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2 *
********************************************************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Gail Shaw wrote:
>
> Can anyone suggest utility or give some advice on writing
> a pov mesh to dxf file convertor.
>
> I'd like to generate a triangle mesh in pov, write it to a file then convert
> that
> file to dxf for use in vue d'espirit. (Giles's make grass macro is far
> superior to any grass that can be created in vue)
>
> Comments and suggestions appreciated
>
If you wish to programm this stuff you can have the dxf specification
from
http://www.dcs.ed.ac.uk/home/mxr/gfx/3d-hi.html
I'm not sure but maybe crossroads can also convert from pov to dxf:
http://home.europa.com/~keithr/
Marc
--
Marc Schimmler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
You can do this with Crossroads. Replace the "mesh" statement in the ouput file
by "union", remove any texture or transformation statement and it should import
the file without any trouble.
The file should be only : union{triangle{...} triangle{...}... triangle{...}}
You can then convert it in DXF. In fact, regular triangles and spheres are the
only POV primitives that seem to be actually supported by Crossroads for
conversion to other formats.
G.
Gail Shaw wrote:
> Can anyone suggest utility or give some advice on writing
> a pov mesh to dxf file convertor.
>
> I'd like to generate a triangle mesh in pov, write it to a file then convert
> that
> file to dxf for use in vue d'espirit. (Giles's make grass macro is far
> superior to any grass that can be created in vue)
>
> Comments and suggestions appreciated
>
> Gail
> ********************************************************************
> * gsh### [at] monotixcoza * Reality.dat not found *
> * http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
> ********************************************************************
> * The best way to accelerate Windows NT is at 9.8 m/s^2 *
> ********************************************************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
If the mesh is created by a povray macro, it will not be that easy.
You will need to output the values generated by the macro to a file
(perhaps in povray form, ie "union { triangle ... and so on", or directly
to a format known by the conversion program, like the raw format). For this
you will need to use the #write command and perhaps modify the macro a bit
to support this.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote in message <39116e83@news.povray.org>...
> If the mesh is created by a povray macro, it will not be that easy.
> You will need to output the values generated by the macro to a file
>(perhaps in povray form, ie "union { triangle ... and so on", or directly
>to a format known by the conversion program, like the raw format). For this
>you will need to use the #write command and perhaps modify the macro a bit
>to support this.
The macro already supports writing meshes to a file. I will still need to
modify
it a bit as I want the objects to fit on a height field.
Thanks
Gail
********************************************************************
* gsh### [at] monotixcoza * Reality.dat not found *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2 *
********************************************************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>If you wish to programm this stuff you can have the dxf specification
>from
>
>http://www.dcs.ed.ac.uk/home/mxr/gfx/3d-hi.html
>
>I'm not sure but maybe crossroads can also convert from pov to dxf:
>
>http://home.europa.com/~keithr/
>
Thanks, I'll have a look at both.
Gail
********************************************************************
* gsh### [at] monotixcoza * Reality.dat not found *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2 *
********************************************************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Gilles Tran wrote in message <39116CF2.D5D6C294@inapg.inra.fr>...
>You can do this with Crossroads. Replace the "mesh" statement in the ouput
file
>by "union", remove any texture or transformation statement and it should
import
>the file without any trouble.
>The file should be only : union{triangle{...} triangle{...}...
triangle{...}}
>
>You can then convert it in DXF. In fact, regular triangles and spheres are
the
>only POV primitives that seem to be actually supported by Crossroads for
>conversion to other formats.
Great!!
Thanks
Gail
********************************************************************
* gsh### [at] monotixcoza * Reality.dat not found *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2 *
********************************************************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
> If the mesh is created by a povray macro, it will not be that easy.
> You will need to output the values generated by the macro to a file
> (perhaps in povray form, ie "union { triangle ... and so on", or directly
> to a format known by the conversion program, like the raw format). For this
> you will need to use the #write command and perhaps modify the macro a bit
> to support this.
Since she was talking about my grass macro, this is already done there (set the
"dofile" parameter to "true"). The "dosmooth" parameter should be "false",
because the conversion is more of a problem for meshes that contain smooth
triangles, since Crossroads only supports regular ones. You can still re-smooth
the triangles in Crossroads if necessary.
When I can't regenerate a POV mesh without the smoothing, I import the mesh to
Excel, move the values into separated columns, remove the normals and save it
(and then import it into Crossroads). It's less straightforward but it works.
G.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Gail Shaw <gsh### [at] monotixcoza> wrote:
: The macro already supports writing meshes to a file.
Kewl.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>The "dosmooth" parameter should be "false",
>because the conversion is more of a problem for meshes that contain smooth
>triangles, since Crossroads only supports regular ones. You can still
re-smooth
>the triangles in Crossroads if necessary.
>When I can't regenerate a POV mesh without the smoothing, I import the mesh
to
>Excel, move the values into separated columns, remove the normals and save
it
>(and then import it into Crossroads). It's less straightforward but it
works.
Noted, thanks.
btw do you mind me modifying your macro? I intend to use the trace function
to find the height of a height field and possible the eval_pigment along
with an
imagemap to determine density of grass.
Gail
********************************************************************
* gsh### [at] monotixcoza * Reality.dat not found *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2 *
********************************************************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |