POV-Ray : Newsgroups : povray.general : Feature request - density file : Re: Feature request - density file Server Time
9 Aug 2024 09:03:02 EDT (-0400)
  Re: Feature request - density file  
From: Chris Huff
Date: 5 Aug 2000 12:40:17
Message: <chrishuff-6FB4B8.11411405082000@news.povray.org>
In article <398bdaf6@news.povray.org>, "Rune" <run### [at] inamecom> 
wrote:

> I really would like to be able to use an image as a pattern without 
> having to create a df3 file first. Something like:
> 
> pigment {density_file tga "filename.tga" [interpolate Type]
> [PIGMENT_MODIFIERS...] }
> 
> From the POV-Ray documentation:
> "The syntax provides for the possibility of implementing other formats in
> the future."
> 
> I hope other formats will be implemented then.

You can use an image as a pattern already, in MegaPOV. There are at 
least 3 ways: image_pattern, pigment_pattern with an image_map pigment, 
pigment function pattern with an image_map...

I think it would be more useful to allow a "stack" image or a group of 
images to be used directly. Movie formats would also make good 
additions. Like this:
density_file {tga list N
    "filename1.tga",
    "filename2.tga",
    "filename3.tga",
...
    "filenameN.tga"
    [interpolate Type]
}


density_file {qt_moov|mpeg|avi "MovieFile.mov"
    [interpolate Type]
}

Also, it might be nice to have movie formats as ordinary image types... 
you could specify the frame number or time(with 1 being the last frame, 
and 0 being the first frame). It would be an easy way to animate 
image_maps.

image_map {qt_moov "MyMovie.mov" time 0.7*clock | frame int(15*clock)...

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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