POV-Ray : Newsgroups : povray.off-topic : instantiation in various 3d formats Server Time
14 Nov 2024 23:19:37 EST (-0500)
  instantiation in various 3d formats (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Charles C
Subject: instantiation in various 3d formats
Date: 27 Oct 2007 04:51:21
Message: <4722fc09@news.povray.org>
Just curious.... I want to know what 3d formats besides POV-Ray SDL 
support object instantiation.  So far as I'm seeing, .obj does not and 
yet seems like such a basic thing....  Am I wrong?  Know of a good place 
to compare formats?

Thanks in advance,
Charles


Post a reply to this message

From: Vincent Le Chevalier
Subject: Re: instantiation in various 3d formats
Date: 27 Oct 2007 05:44:11
Message: <4723086b$1@news.povray.org>

> Just curious.... I want to know what 3d formats besides POV-Ray SDL 
> support object instantiation.  So far as I'm seeing, .obj does not and 
> yet seems like such a basic thing....  Am I wrong?  Know of a good place 
> to compare formats?
> 

I have no idea about instanciation specifically, but this page is a good 
start for plenty of data format:
http://local.wasp.uwa.edu.au/~pbourke/dataformats/

Hope this helps

-- 
Vincent


Post a reply to this message

From: Gilles Tran
Subject: Re: instantiation in various 3d formats
Date: 27 Oct 2007 07:21:22
Message: <47231f32$1@news.povray.org>

4722fc09@news.povray.org...
> Just curious.... I want to know what 3d formats besides POV-Ray SDL 
> support object instantiation.  So far as I'm seeing, .obj does not and yet 
> seems like such a basic thing....  Am I wrong?  Know of a good place to 
> compare formats?

AFAIK, instantiation is not a property of the file format, but a feature of 
the renderer.

G.


Post a reply to this message

From: Orchid XP v7
Subject: Re: instantiation in various 3d formats
Date: 27 Oct 2007 07:38:20
Message: <4723232c$1@news.povray.org>
Gilles Tran wrote:

> AFAIK, instantiation is not a property of the file format, but a feature of 
> the renderer.

True. Although it helps if the file format has some way to express that 
the renderer should do this. (E.g., rather than just duplicating the 
data twice.)


Post a reply to this message

From: Warp
Subject: Re: instantiation in various 3d formats
Date: 27 Oct 2007 10:19:10
Message: <472348de@news.povray.org>
Gilles Tran <gitran_nospam_@wanadoo.fr> wrote:
> AFAIK, instantiation is not a property of the file format, but a feature of 
> the renderer.

  If you tell the renderer "copy this mesh 1000 times over the scene" (but
the mesh data is kept only once in memory), thus getting a nice scene, and
then you want to save this scene into a file, how do you do that if the
file format doesn't support saying "copy this mesh here" commands?

-- 
                                                          - Warp


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: instantiation in various 3d formats
Date: 27 Oct 2007 13:25:33
Message: <4723748d$1@news.povray.org>

> Gilles Tran <gitran_nospam_@wanadoo.fr> wrote:
>> AFAIK, instantiation is not a property of the file format, but a feature of 
>> the renderer.
> 
>   If you tell the renderer "copy this mesh 1000 times over the scene" (but
> the mesh data is kept only once in memory), thus getting a nice scene, and
> then you want to save this scene into a file, how do you do that if the
> file format doesn't support saying "copy this mesh here" commands?
> 

Keeping it only once in memory is a feature of the renderer, which 
requires such a command on the file format. Having the triangle list 
only once in the input file is a feature of the file format. A (quite) 
stupid parser could duplicate data in memory even if it's not duplicated 
on the file!


Post a reply to this message

From: Warp
Subject: Re: instantiation in various 3d formats
Date: 27 Oct 2007 13:33:24
Message: <47237663@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> requires such a command on the file format.

  That's what I thought.

-- 
                                                          - Warp


Post a reply to this message

From: Charles C
Subject: Re: instantiation in various 3d formats
Date: 28 Oct 2007 02:00:07
Message: <47243377@news.povray.org>
Nicolas Alvarez wrote:

>> Gilles Tran <gitran_nospam_@wanadoo.fr> wrote:
>>> AFAIK, instantiation is not a property of the file format, but a 
>>> feature of the renderer.
>>
>>   If you tell the renderer "copy this mesh 1000 times over the scene" 
>> (but
>> the mesh data is kept only once in memory), thus getting a nice scene, 
>> and
>> then you want to save this scene into a file, how do you do that if the
>> file format doesn't support saying "copy this mesh here" commands?
>>
> 
> Keeping it only once in memory is a feature of the renderer, which 
> requires such a command on the file format. Having the triangle list 
> only once in the input file is a feature of the file format. A (quite) 
> stupid parser could duplicate data in memory even if it's not duplicated 
> on the file!

Basically I like the idea of having the flexibility of being able to 
export to a fairly universal format like .obj.   But if .obj doesn't 
support instantiation, and if my model is (or will be) a collection of 
tens if not (perhaps) hundreds of thousands of non-unique meshes (save 
the for transformation of each), then man oh man will that be a big 
file.  I can't imagine most file formats would leave out such a basic 
thing.

Anyway unless somebody can answer somewhat definitively about a good 
format, it looks like I've got some studying to do.  Paul Bourke's page 
that Vincent linked to looks useful especially with that handy search 
button.

Charles


Post a reply to this message

From: Charles C
Subject: Re: instantiation in various 3d formats
Date: 28 Oct 2007 02:00:11
Message: <4724337b@news.povray.org>
Vincent Le Chevalier wrote:

>> Just curious.... I want to know what 3d formats besides POV-Ray SDL 
>> support object instantiation.  So far as I'm seeing, .obj does not and 
>> yet seems like such a basic thing....  Am I wrong?  Know of a good 
>> place to compare formats?
>>
> 
> I have no idea about instanciation specifically, but this page is a good 
> start for plenty of data format:
> http://local.wasp.uwa.edu.au/~pbourke/dataformats/
> 
> Hope this helps
> 


Thanks!  This is definitely a good resource to know about.
Charles


Post a reply to this message

From: Tom York
Subject: Re: instantiation in various 3d formats
Date: 28 Oct 2007 10:45:00
Message: <web.4724ad79c654e3737d55e4a40@news.povray.org>
Charles C <"nospam a nospam.com"> wrote:
> Basically I like the idea of having the flexibility of being able to
> export to a fairly universal format like .obj.   But if .obj doesn't
> support instantiation, and if my model is (or will be) a collection of
> tens if not (perhaps) hundreds of thousands of non-unique meshes (save
> the for transformation of each), then man oh man will that be a big
> file.  I can't imagine most file formats would leave out such a basic
> thing.

A lot of older formats would have been dealing with very simple scenes (for an
example of a format that time has really left behind, look at .3DS). I guess
the use case for a lot of those formats was to hold a single model rather than
a scene. You want a modern interchange format; Collada springs to mind.

Tom


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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