POV-Ray : Newsgroups : povray.general : export to .obj file? Server Time
26 Dec 2024 22:11:19 EST (-0500)
  export to .obj file? (Message 1 to 10 of 14)  
Goto Latest 10 Messages Next 4 Messages >>>
From: peyrol
Subject: export to .obj file?
Date: 8 Dec 2015 18:35:01
Message: <web.566768f16e39bacce349d4160@news.povray.org>
Is there any software which can input a POVray script definition of an object
and turn it into an .obj file? Thanks.


Post a reply to this message

From: clipka
Subject: Re: export to .obj file?
Date: 9 Dec 2015 09:55:01
Message: <web.56683f7cff12eed3ad6fa18f0@news.povray.org>
"peyrol" <nomail@nomail> wrote:
> Is there any software which can input a POVray script definition of an object
> and turn it into an .obj file? Thanks.

If your POV-Ray script has a straightforward structure and contains only mesh or
mesh2 objects, then PoseRay may be able to read it.


Post a reply to this message

From: clipka
Subject: Re: export to .obj file?
Date: 9 Dec 2015 19:32:12
Message: <5668c80c$1@news.povray.org>
Am 09.12.2015 um 15:50 schrieb clipka:
> "peyrol" <nomail@nomail> wrote:
>> Is there any software which can input a POVray script definition of an object
>> and turn it into an .obj file? Thanks.
> 
> If your POV-Ray script has a straightforward structure and contains only mesh or
> mesh2 objects, then PoseRay may be able to read it.

Also, Jerome Grimbert has developed a patched version of POV-Ray that
seems to be able to tesselate (i.e. generate meshes from) arbitrary
POV-Ray objects, and can export them at least in STL format, which
should be convertible to .obj using some external converter.

It is also possible to implement a tesselation algorithm as a piece of
POV-Ray script, but I'd only consider that as a last resort, as it would
probably require quite some parsing time.


Tesselation is a mandatory requirement when converting arbitrary POV-Ray
objects into .obj files, as POV-Ray uses raw mathematical
representations for most of its primitives (e.g. center point and radius
in case of a sphere) during the entire rendering process, whereas the
.obj file format can only store polygon meshes.


Post a reply to this message

From: Le Forgeron
Subject: Re: export to .obj file?
Date: 10 Dec 2015 02:42:48
Message: <56692cf8$1@news.povray.org>
Le 10/12/2015 01:32, clipka a écrit :
> Also, Jerome Grimbert has developed a patched version of POV-Ray that
> seems to be able to tesselate (i.e. generate meshes from) arbitrary
> POV-Ray objects, and can export them at least in STL format, which
> should be convertible to .obj using some external converter.

Mesh can also be saved (in that same patched version) in gts format.
(and it loads gts too, but not stl)

It is not arbitrary POV-Ray objects, only 3D finite objects:
  * most methods need an interior
  * you cannot make a mesh of povray plane or hyperboloid.
  * but you can make mesh of intersection of planes, if the intersection 
is 3D finite and has a non-infinite bounding box.
  * 2D finite objects are not expected (triangle, disc...)

There are 6 tesselation methods... none are perfect (in fact, 2 
categories, with 2 & 4 variants). And sometime, it seems there is a bit 
of problem like long triangles jumping in the shape.


Post a reply to this message

From: Stephen
Subject: Re: export to .obj file?
Date: 10 Dec 2015 03:08:34
Message: <56693302@news.povray.org>
On 12/8/2015 11:34 PM, peyrol wrote:
> Is there any software which can input a POVray script definition of an object
> and turn it into an .obj file? Thanks.
>
>

There was a similar question asked earlier this year. It might be worth 
a read as Thomas de Groot and William F Pokorny mention macros that 
might be useful.


http://news.povray.org/povray.newusers/thread/%3Cweb.556920739fbf4fba62e642c0@news.povray.org%3E/


-- 

Regards
     Stephen


Post a reply to this message

From: peyrol
Subject: Re: export to .obj file?
Date: 16 Dec 2015 06:05:01
Message: <web.56714484ff12eed389fe99200@news.povray.org>
Thanks to all for your quick and detailed responses!


Post a reply to this message

From: Bald Eagle
Subject: Re: export to .obj file?
Date: 16 Dec 2015 21:50:01
Message: <web.567222ceff12eed35e7df57c0@news.povray.org>
I do some work with 3D printers, and so naturally I've come across and used
OpenSCAD.   The way to "build" things is remarkably similar to POV-Ray's SDL.

I'm wondering if it might be "easy" {someone else could do the work ;) } to
translate SDL to the OpenSCAD format, and export as an STL file.   AFAIK, it
should be trivial to convert STL to OBJ.


Post a reply to this message

From: Sven Littkowski
Subject: Re: export to .obj file?
Date: 25 Jan 2016 12:24:08
Message: <56a65a38$1@news.povray.org>
Is there any way to contact Jerome Grimbert or to download that patched
version of POV-Ray? Thanks.


Post a reply to this message

From: clipka
Subject: Re: export to .obj file?
Date: 25 Jan 2016 14:03:59
Message: <56a6719f$1@news.povray.org>
Am 25.01.2016 um 18:23 schrieb Sven Littkowski:
> Is there any way to contact Jerome Grimbert or to download that patched
> version of POV-Ray? Thanks.

Le_Forgeron might be able to help you there ;)


Post a reply to this message

From: Le Forgeron
Subject: Re: export to .obj file?
Date: 25 Jan 2016 14:52:29
Message: <56a67cfd$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 25/01/2016 20:03, clipka a écrit :
> Am 25.01.2016 um 18:23 schrieb Sven Littkowski:
>> Is there any way to contact Jerome Grimbert or to download that
>> patched version of POV-Ray? Thanks.
> 
> Le_Forgeron might be able to help you there ;)
> 

The code is available on github and bitbucket
(if you like git or mercurial )

and all starts in

http://wiki.povray.org/content/User:Le_Forgeron

The repository is povray, the branch with tesselation and all other
extension/change is Hgpovray (or Hg-povray)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlamfPwACgkQhKAm8mTpkW0ZagP9HxnBIIdFbYYMAKtnIXA7In70
Gt2Zr+An9d9TotFUqeWWMU+QnaV2LQ8TUH+U5P0rJ4ZAmvy9nUHvG26Px5gid0EG
3pBu4+Ldq+ootHE34V0t3EM9NZCOwCi57NeeCKiQapZMAozYQWV397cgH1cyBeds
YeZJCqhDMauJh7VanMI=
=qWmR
-----END PGP SIGNATURE-----


Post a reply to this message

Goto Latest 10 Messages Next 4 Messages >>>

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