POV-Ray : Newsgroups : povray.general : Why doesn't PovRay support Obj files? Server Time
1 Nov 2024 11:17:40 EDT (-0400)
  Why doesn't PovRay support Obj files? (Message 1 to 6 of 6)  
From: ShiJie
Subject: Why doesn't PovRay support Obj files?
Date: 31 Oct 2004 13:40:00
Message: <web.4185306d883f573b174727610@news.povray.org>
Hi,

I was wondering. Why doesn't PovRay support .obj files (to import in the
scenes), I am actually not certain if it really doesn't. But currently when
I make a 3D model that requires a modeller and when I try saving it as
..pov, I see how big the file becomes as compared to .obj. Since the .pov
are text-based this will naturally be always bigger. It is indeed efficient
if I can work with a more compressed file (as I will usually not need to
alter the object within povray, at most I will put a texture but this does
not require me to edit the output obj file). So how is this question
answered? "Why doesn't PovRay support Obj file, or any other compressed
form of graphic model?"

Sincerely,
Jose Capco


Post a reply to this message

From: Christoph Hormann
Subject: Re: Why doesn't PovRay support Obj files?
Date: 31 Oct 2004 13:55:02
Message: <cm3ccc$mgr$1@chho.imagico.de>
ShiJie wrote:
> Hi,
> 
> I was wondering. Why doesn't PovRay support .obj files (to import in the
> scenes), I am actually not certain if it really doesn't. But currently when
> I make a 3D model that requires a modeller and when I try saving it as
> ..pov, I see how big the file becomes as compared to .obj. Since the .pov
> are text-based this will naturally be always bigger.

.obj files are text format as well - they will not be significantly 
smaller than a mesh2.  If the files your modeller generates are much 
larger the program is simply inefficient.  Concerning why POV-Ray does 
not support any binary geometry files read:

http://tag.povray.org/povQandT/filesQandT.html#binarymeshdata

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: ingo
Subject: Re: Why doesn't PovRay support Obj files?
Date: 31 Oct 2004 15:00:26
Message: <Xns9593D5B2BBCEseed7@news.povray.org>
in news:cm3ccc$mgr$1@chho.imagico.de Christoph Hormann wrote:

> .obj files are text format as well - they will not be significantly 
> smaller than a mesh2.  If the files your modeller generates are much 
> larger the program is simply inefficient

If the exported mesh's are the same, yes, but there are programs that 
export different things when they export to .pov or .obj Exports to pov 
are always triangle mesh's exports to obj can often be polygon mesh'. It 
is not nessesceraly so that the mesh's are tesselated.
An other cause can be that when exporting from for example Silo, the pov 
export is the subdivided and tesselated mesh and the obj export is always 
the unsubdivided untesselated mesh.

Ingo


Post a reply to this message

From: Sascha Ledinsky
Subject: Re: Why doesn't PovRay support Obj files?
Date: 31 Oct 2004 16:23:32
Message: <418557d4$1@news.povray.org>
Christoph Hormann wrote
 > .obj files are text format as well - they will not be significantly
 > smaller than a mesh2.

The .obj file format is not restricted to polygons, it allows e.g. NURBS 
as well. However, I think that most programs that allow importing .obj 
files expect triangles or polygons. Other .obj files may be a lot 
smaller, but less portable.


Post a reply to this message

From: ShiJie
Subject: Re: Why doesn't PovRay support Obj files?
Date: 2 Nov 2004 09:55:00
Message: <web.41879ec66b7bd3e8174727610@news.povray.org>
Christoph Hormann <chr### [at] gmxde> wrote:

> .obj files are text format as well - they will not be significantly
> smaller than a mesh2.  If the files your modeller generates are much
> larger the program is simply inefficient.  Concerning why POV-Ray does
> not support any binary geometry files read:
>
> http://tag.povray.org/povQandT/filesQandT.html#binarymeshdata
>
> Christoph


So, how am I going to put in some .obj file that someone gives me (or that I
made) into a PovRay scene? Should I be converting them? (Crossroad does the
job? or is there a better option?).

Sincerely,
Jose Capco


Post a reply to this message

From: Christoph Hormann
Subject: Re: Why doesn't PovRay support Obj files?
Date: 2 Nov 2004 11:05:02
Message: <cm8b24$716$1@chho.imagico.de>
ShiJie wrote:
> 
> So, how am I going to put in some .obj file that someone gives me (or that I
> made) into a PovRay scene? Should I be converting them? (Crossroad does the
> job? or is there a better option?).

There are various programs that do such a conversion (and maybe it would 
be possible to do this with a sed oneliner as well).  Quite commonly 
used and very flexible is Poseray:

http://user.txcyber.com/~sgalls/

(which runs fine in Wine in case you are using Linux).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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