POV-Ray : Newsgroups : povray.unofficial.patches : dat_?d_? Server Time
2 Sep 2024 16:19:52 EDT (-0400)
  dat_?d_? (Message 1 to 8 of 8)  
From: david sharp
Subject: dat_?d_?
Date: 16 Dec 1999 23:15:34
Message: <3859b8e6@news.povray.org>
is there *any* interest in being able to use
".df3" media density files as input for the
dat_3d_3, dat_2d_1, (etc) SuperPatch
functions?
Like, are there many (any?) of these files
laying around looking for some purpose in life?

I just 'fixed' my copy of MegaPov to accept them
and they seem to work fine now, but is there a
*reason* to put this functionality into MegaPov?
I mean, its not like one is likely to make df3 files
for this purpose since the other formats are quite
adequate as far as I can see, except for the single
fact that .df3 contain their own sample dimensions,
while to use the files already accepted by the dat_?D_?
functions, one has to specify the sampling dimensions,
but that does not seem like much of a big deal to me.


Post a reply to this message

From: Nathan Kopp
Subject: Re: dat_?d_?
Date: 16 Dec 1999 23:41:20
Message: <3859bef0@news.povray.org>
I think we've got some duplicate work  going on here. Smellenbergh wrote
some code so that libraries, such as the dat_3d stuff, can be compiled
directly into MegaPov (which is incorporated into my current working code).
If you want to submit any modifications to the isosurface code (such as the
ability to read d3f files), let him know.  I do think it would be good for
POV to accept 3d data in a single consistent format for both media and
isosurfaces.

-Nathan


david sharp <dsh### [at] interportnet> wrote...
> is there *any* interest in being able to use
> ".df3" media density files as input for the
> dat_3d_3, dat_2d_1, (etc) SuperPatch
> functions?
> Like, are there many (any?) of these files
> laying around looking for some purpose in life?
>
> I just 'fixed' my copy of MegaPov to accept them
> and they seem to work fine now, but is there a
> *reason* to put this functionality into MegaPov?
> I mean, its not like one is likely to make df3 files
> for this purpose since the other formats are quite
> adequate as far as I can see, except for the single
> fact that .df3 contain their own sample dimensions,
> while to use the files already accepted by the dat_?D_?
> functions, one has to specify the sampling dimensions,
> but that does not seem like much of a big deal to me.
>
>


Post a reply to this message

From: ingo
Subject: Re: dat_?d_?
Date: 17 Dec 1999 04:20:51
Message: <8E9F66C22seed7@204.213.191.228>
david sharp wrote:

>is there *any* interest in being able to use
>".df3" media density files as input for the
>dat_3d_3, dat_2d_1, (etc) SuperPatch
>functions?

I don't know. Would there be a difference in result wether you use a .df3 in 
dat_3d_3 or use it in a pigment based isosurface? If so, what is the 
difference?

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Nieminen Juha
Subject: Re: dat_?d_?
Date: 17 Dec 1999 06:24:02
Message: <385a1d52@news.povray.org>
What I would want to be able to do is to create df3 density maps
inside povray itself, without external files. Just like it's possible to
create a heightfield without an external file in megapov.
  Is this already possible in megapov?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: david sharp
Subject: Re: dat_?d_?
Date: 17 Dec 1999 07:25:37
Message: <385a2bc1@news.povray.org>
ingo  wrote
> david sharp wrote:
>
> >is there *any* interest in being able to use
> >".df3" media density files as input for the
> >dat_3d_3, dat_2d_1, (etc) SuperPatch
> >functions?
>
> I don't know. Would there be a difference in result wether you use a .df3
in
> dat_3d_3 or use it in a pigment based isosurface? If so, what is the
> difference?

there should not be much difference except that .df3 has a maximum
of 8 bit precision in its values, while you can get up to 64 bits
precision with a couple of the dat_3d_3 file formats.


Post a reply to this message

From: david sharp
Subject: Re: dat_?d_?
Date: 17 Dec 1999 09:04:31
Message: <385a42ef@news.povray.org>
Nieminen Juha <war### [at] punarastascstutfi> wrote in message
news:385a1d52@news.povray.org...
>   What I would want to be able to do is to create df3 density maps
> inside povray itself, without external files. Just like it's possible to
> create a heightfield without an external file in megapov.
>   Is this already possible in megapov?

I am not sure what you mean, but with MegaPov or SuperPatch
I think you can use an isosurface function as a density, as in:

#declare densfn=function{x^3+y-z^2}

sphere{0,.5
 texture{
   pigment{rgbt 1}
 }
 interior{
     media{
       emission 1
       density{
         function{densfn}
         color_map{
            [0     rgb<1,1,1>]
            [.1    rgb<0,0,1>]
            [1     rgb<0,0,0>]
         }
       }

    }
 }
 hollow
}

(I am *not* saying that this snippet is good example!
It is just to show syntax)


Post a reply to this message

From: Nieminen Juha
Subject: Re: dat_?d_?
Date: 19 Dec 1999 13:34:50
Message: <385d254a@news.povray.org>
No, I really mean df3 density data, not a function (unless the function can
read an array...).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: david sharp
Subject: Re: dat_?d_?
Date: 19 Dec 1999 14:11:51
Message: <385d2df7@news.povray.org>
Nieminen Juha wrote:
> No, I really mean df3 density data, not a function (unless the function
can
> read an array...).

So you are asking if one can create data for dat_3d_3
inside the scene file? Like maybe using a #macro ?
So far as I can tell, the function{} can't use arrays or #macros.
I would like to use data arrays that are more complex than is
practical to get from what fits in a function{} declaration.
For example, all kinds weird recursive stuff, integral transforms,
fractals, etc etc. POV script language being more complex than what
is accepted inside function{}.
What I have been playing with  is using the POV-Ray scene
script language to #fopen a data file and fill that file with data,
#fclose, then somewhere below that in the scene file just call
dat_3d_3 on the just created data file. It works OK, but it is not
very efficient, since that data "should" just be put into an array
in memory which dat_3d_ "should" be able to read.
Is that what you mean?


Post a reply to this message

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