|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
nospam <Pet### [at] nymaliasnetalmost> wrote:
> However, it might is best that vinary I/O not be added.
> Consider the ability to have a pov-script that in turn writes
> a (binary) .exe file containing a virus? Or what is to stop
> povray from overwriting the system password file, or
> command.com?
What stops it from doing it now?
You can easily make a POV-script which overwrites c:\autoexec.bat with
some nasty command. You can make one which overwrites important system
files with 0-sized files (or containing whatever garbage you like).
Support for binary writing does not add any additional danger which is
not there already.
And the answer to the question: I/O restrictions.
(In NT-based and Unix-based systems the OS will probably not allow
overwriting such files, but in older Windows systems it's very possible.)
--
#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 understand that it is not possible with the current primitives due to
that fact that they are text primitives. Still, I think that it would be
interesting to have this possibility with extra primitives (like a
POV-script write_char/read_char accepting any byte value). I spoke of
DF3 files because that's what I had in mind, but there is plenty of
examples where this could be usefull, like model conversion from pov to
any other utility for example audio files and so on (pov-guys
imagination is endless it seems).
There's always the possibility to run an extra converter program but it
would be so nicer to have this built-in. I hope it will be possible in
some future version of our beloved POVRAY. :-)
JC
ABX wrote:
> On Fri, 22 Aug 2003 10:35:17 +0200, "JC (Exether)" <no### [at] spamfr> wrote:
>
>>I would like to generate a df3 file directly from a pov script,
>>generating it from pigments, a bit like Gilles' makecloud macro. But I
>>had a look at the documentation, and it seems that you can only output
>>text to a file.
>>So I was wondering if there was a trick to do it, and if not, if it's
>>going to be implemented in some next POVray version.
>
>
> It was discussed a few times. It is not possible to make binary files.
>
>
>>JC
>>PS: I know I can generate images with povray and make a df3 file with
>>some utility, but I already have too much utilities installed and I'd
>>like to do it in one step.
>
>
> See text format called extended density_file format at
> http://staff.aist.go.jp/r-suzuki/e/povray/iso/df_body.htm
>
> ABX
Post a reply to this message
|
|
| |
| |
|
|
From: Brendan Ryan
Subject: Re: Writing binary files with POV script
Date: 25 Aug 2003 08:53:55
Message: <3f4a06e3@news.povray.org>
|
|
|
| |
| |
|
|
JC (Exether) wrote:
> I would like to generate a df3 file directly from a pov script,
> generating it from pigments, a bit like Gilles' makecloud macro. But I
> had a look at the documentation, and it seems that you can only output
> text to a file.
>
What about endianess? Maybe the first byte or something could be used
to record the endianess used so that the data could be swapped if needed.
Brendan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3f4a06e3@news.povray.org> , Brendan Ryan <bjr### [at] ritedu>
wrote:
>> I would like to generate a df3 file directly from a pov script,
>> generating it from pigments, a bit like Gilles' makecloud macro. But I
>> had a look at the documentation, and it seems that you can only output
>> text to a file.
>
> What about endianess? Maybe the first byte or something could be used
> to record the endianess used so that the data could be swapped if needed.
Nothing. It does not matter.
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
|
|
| |
| |
|
|
From: JC (Exether)
Subject: Re: Writing binary files with POV script
Date: 26 Aug 2003 03:00:59
Message: <3f4b05ab@news.povray.org>
|
|
|
| |
| |
|
|
Well, endianess can be taken into account by the primitives, you can
have primitives outputing 4 bytes integers or IEEE floats so that you
don't have to care about endianess. There could be a variable to give
endianess of the machine too.
JC
Brendan Ryan wrote:
> JC (Exether) wrote:
>
>> I would like to generate a df3 file directly from a pov script,
>> generating it from pigments, a bit like Gilles' makecloud macro. But I
>> had a look at the documentation, and it seems that you can only output
>> text to a file.
>>
>
> What about endianess? Maybe the first byte or something could be used
> to record the endianess used so that the data could be swapped if needed.
>
> Brendan
>
Post a reply to this message
|
|
| |
| |
|
|
From: Thorsten Froehlich
Subject: Re: Writing binary files with POV script
Date: 26 Aug 2003 14:22:37
Message: <3f4ba56d@news.povray.org>
|
|
|
| |
| |
|
|
In article <3f4b05ab@news.povray.org> , "JC (Exether)" <no### [at] spamfr> wrote:
> Well, endianess can be taken into account by the primitives, you can
> have primitives outputing 4 bytes integers or IEEE floats so that you
> don't have to care about endianess. There could be a variable to give
> endianess of the machine too.
>
> Brendan Ryan wrote:
>> JC (Exether) wrote:
>>
>>> I would like to generate a df3 file directly from a pov script,
>>> generating it from pigments, a bit like Gilles' makecloud macro. But I
>>> had a look at the documentation, and it seems that you can only output
>>> text to a file.
>>>
>>
>> What about endianess? Maybe the first byte or something could be used
>> to record the endianess used so that the data could be swapped if needed.
As said, to create df3 files, you don't need to know anything about
endianess.
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 24 Aug 2003 20:08:08 -0400, Warp <war### [at] tagpovrayorg> wrote:
> And the answer to the question: I/O restrictions.
I had forgotten all about that. :D
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |