|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I am not sure if there is a work around for my problem but here goes:
I am trying to read a text file and then parse out both string and vector
information.
#read produces an error any time it finds something not in quotes. The files
I am reading have other characters that I want to read in as text but their
not in quotes in the file. It is a large files and not always will I be
able to edit just to put quotes around everything. Is there a way for
povray to read a standard ASCII file into string variables line at a time
with out quotes being in the file?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Is there a way for povray to read a standard ASCII file into
> string variables line at a time with out quotes being in the file?
No. Unless you modify the source-code for POV-Ray and make your own binary.
I've requested such a feature before, but it's unclear wether it will make
it into POV.
I think it had something to do with platform-independancy, so it wouldn't
work.
I know it's annoying sometimes.
Regards,
Hugo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3ffd8bc0@news.povray.org> , "Hugo Asm" <hua### [at] post3teledk>
wrote:
> I think it had something to do with platform-independancy, so it wouldn't
> work.
No, it has nothing to do with that at all.
It is simply the way read is designed to be easy to use by the average user
(as it detects the data type and so on). POV-Ray is a ray-tracer after all,
not a general purpose scripting language.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 8 Jan 2004 17:56:31 +0100, "Hugo Asm" <hua### [at] post3teledk>
wrote:
>No. Unless you modify the source-code for POV-Ray and make your own binary.
>I've requested such a feature before, but it's unclear wether it will make
>it into POV.
Unlikely.
>I think it had something to do with platform-independancy, so it wouldn't
>work.
It's more a security issue.
Anyway, a more or less simple way of doing that is to use a
PRE_SCENE_COMMAND that parses the file in question and converts it to
a format that POV-Ray can read. Easier than patching POV anyway :)
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thorsten Froehlich wrote:
>In article <3ffd8bc0[at]news.povray.org> , "Hugo Asm" <hua### [at] post3teledk>
>wrote:
>
>> I think it had something to do with platform-independancy, so it wouldn't
>> work.
>
>No, it has nothing to do with that at all.
>
>It is simply the way read is designed to be easy to use by the average user
>(as it detects the data type and so on). POV-Ray is a ray-tracer after all,
>not a general purpose scripting language.
>
> Thorsten
>
>____________________________________________________
>Thorsten Froehlich, Duisburg, Germany
>e-mail: tho### [at] trfde
>
>Visit POV-Ray on the web: http://mac.povray.org
POVRay might just be a raytracer but the SDL is a specialized scripting
language directly for the use in 3D graphics. Why else would it include any
programming capability?
It is nice to know the aim was for ease of use but it would still be nice to
be able to use data generated in other programs directly in POVRay with out
having to convert lots of files outside of POVRay. What I was trying to do
was read an OBJ file and build a mesh2 object during render time. This
would give me direct access to the vertices with out having to spend the
time converting.
But alas it seems this is not to be. It must be too far outside the intent
of POVRay.
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <web.3ffdb4441a5e445c4e1f4eb10@news.povray.org> , "m1j"
<mik### [at] hotmailcom> wrote:
> It is nice to know the aim was for ease of use but it would still be nice to
> be able to use data generated in other programs directly in POVRay with out
> having to convert lots of files outside of POVRay. What I was trying to do
> was read an OBJ file and build a mesh2 object during render time. This
> would give me direct access to the vertices with out having to spend the
> time converting.
>
> But alas it seems this is not to be. It must be too far outside the intent
> of POVRay.
Honestly, writing a program that con be compiled or processed by a fast
interpreter do convert the OBJ file into a format #read will handle will
give you a lot of benefits. One is that parsing complex directives in
POV-Ray takes a lot of time, simply becaus ethe parser of POV-Ray is not
optimised for this at all. This in turn will gives you a lot more time
actually render...
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Peter Popov <pet### [at] vipbg> wrote:
> >I think it had something to do with platform-independancy, so it wouldn't
> >work.
> It's more a security issue.
I don't think it has anything to do with security.
#read was designed to simply read comma-separated SDL items (such as
floats, vectors, strings, etc). Nothing more.
(There's a funny and sometimes useful side-effect on how it parses the
file, though...)
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I also think that POV should be able to read in many kinds of file formats.
I also think that POV should be more than a ray tracer. The SDL ot to be
expanded into a kind of general scripting language, on a level comparable
with something like python.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Warp" <war### [at] tagpovrayorg> wrote in message news:3ffdd173@news.povray.org...
>
> (There's a funny and sometimes useful side-effect on how it parses the
> file, though...)
Are you going to tell us what it is, or do I have to post another link to
http://tinyurl.com/yuqbc ?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 8 Jan 2004 16:53:55 -0500, Warp <war### [at] tagpovrayorg> wrote:
> I don't think it has anything to do with security.
Before I/O restrictions were introduced, the main reason to reject a
patch correcting the #read behaviour was that it would make it
possible to read system-critical files such as config.sys
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |