POV-Ray : Newsgroups : povray.text.scene-files : My "turning images into CSG-able 3D texture" example Server Time
31 Oct 2024 06:01:55 EDT (-0400)
  My "turning images into CSG-able 3D texture" example (Message 1 to 5 of 5)  
From: Bob H 
Subject: My "turning images into CSG-able 3D texture" example
Date: 8 Mar 2001 08:59:40
Message: <3aa7904c@news.povray.org>
// Persistence of Vision Ray Tracer Scene Description File
// File: imagelisttexture.pov
// Vers: 3.1
// Desc: creates pigment based on images from a list file supplied by user
// Date: 2001.18
// Auth: Bob Hughes
// Mail: omn### [at] charternet
// Note: list file must be in comma delimited format and have 256 entry
limit
/* contents of images.lst need to look like this:

"something",
"another",
"etcetera",
"omega"

of course change file type below as wanted, whatever else too
*/

#version 3.1;

#declare In=0; // predefine variables
#declare N=0;

#fopen IL "c:\images.lst" read
 #while (defined(IL))
  #declare In=int(In+1); // count entries
  #read (IL,V) // null
 #end
#fclose IL // reset

#declare Images= // pigment name
        pigment {gradient z // any pattern
                pigment_map {
#fopen IL "c:\images.lst" read
 #while (defined(IL))
  #declare N=(N+1); // pre-index number
 #read (IL, I)
  #declare StringI=I // the file name
 [N/In image_map {png StringI
         filter all 0 // options
         once
        }               ]
 #end
        }
 }


difference { // test with CSG animation
box {0,1}
sphere {<1.75-(clock*2.5),1.75-(clock*2.5),0>,1}
 pigment {Images}
    translate -.5 scale 2 //rotate <90,45,0>
}


camera {
        location -5*z
        right x up y
        angle 30
        look_at 0
}

light_source {<10,10,-10>,1}
light_source {<-10,-10,-10>,1}

background {rgb 1}


Post a reply to this message

From: yooper
Subject: Re: My "turning images into CSG-able 3D texture" example
Date: 8 Mar 2001 13:55:57
Message: <3aa7d5bd$1@news.povray.org>
Do you have an example of this somewhere, Bob?  I've searched all
around but haven't found anything.  Not sure what you are doing here
or how but it has made me curious . . .
**
Y
alwayz looking for new stuff to think about . . . ;)


Post a reply to this message

From: Ron Parker
Subject: Re: My "turning images into CSG-able 3D texture" example
Date: 8 Mar 2001 14:17:42
Message: <slrn9afmmo.92m.ron.parker@fwi.com>
On Thu, 8 Mar 2001 12:55:05 -0600, yooper wrote:
>Do you have an example of this somewhere, Bob?  I've searched all
>around but haven't found anything.  Not sure what you are doing here
>or how but it has made me curious . . .

It's from a discussion in povray.general on 3d imagemaps.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: My "turning images into CSG-able 3D texture" example
Date: 8 Mar 2001 15:35:33
Message: <3aa7ed15@news.povray.org>
Ron Parker schrieb in Nachricht ...
>On Thu, 8 Mar 2001 12:55:05 -0600, yooper wrote:
>>Do you have an example of this somewhere, Bob?  I've searched all
>>around but haven't found anything.  Not sure what you are doing here
>>or how but it has made me curious . . .
>
>It's from a discussion in povray.general on 3d imagemaps.
>
And there is a sample animation in p.b.a.

Marc-Hendrik


Post a reply to this message

From: yooper
Subject: Re: My "turning images into CSG-able 3D texture" example
Date: 9 Mar 2001 02:58:03
Message: <3aa88d0b$1@news.povray.org>
tanks . . .
**
Y


Post a reply to this message

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