POV-Ray : Newsgroups : povray.general : A new SDL Idea : Re: A new SDL Idea Server Time
31 Jul 2024 14:29:56 EDT (-0400)
  Re: A new SDL Idea  
From: Bruno Cabasson
Date: 17 Oct 2007 09:30:00
Message: <web.47160e0abcc3cc02e8ba46670@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Bruno Cabasson <bru### [at] alcatelaleniaspacefr> wrote:
> > In order to keep current syntax spirit, I would rather propose something
> > like:
>
>   The problem is that it hard-codes that the imported object is a mesh.
> (Can .obj files contain other things too, such as NURBS or whatever?)
>
> --
>                                                           - Warp

Well, ok, right, I agree 100% ... But that's not really the problem of the
principle that POV4 syntax should resemble current one. I don't know about
obj format, but the 'load_file' method of meshes can do such an assumption,
and focus on meshes in the file. However, the 'obj specific options' are
here to tell the import method what to do, like access the target object
through its name or whatever obj format is like.

Then, if 'name' is an attribute of obj format:

my_mesh = mesh
{
    load_file {obj "victoria.obj" name "victoria_body"  [other obj-specific
options]}
    ...
}

I do not address specific details, but the overall principles of the syntax.


Bruno.


Post a reply to this message

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