POV-Ray : Newsgroups : povray.general : Multiple maps? Server Time
9 Aug 2024 13:26:12 EDT (-0400)
  Multiple maps? (Message 1 to 7 of 7)  
From: Jason Miller
Subject: Multiple maps?
Date: 22 Jul 2000 14:17:29
Message: <3979e539$1@news.povray.org>
Is it possible to use multiple maps, each for a different aspect of the
texture?

For instance, I would like to specifiy a map for the color, a map for the
reflection color, a map for filter, etc, etc.

I tried this code, but it says that I can not layer patterns.
 texture{
            pigment {
                image_map
                          {
                           tga "sphere.tga"
                           map_type 0 //planar
                           interpolate 2 //none
                        }
                   }
          }
 texture{
                material_map
                        {
                        tga "sphereref.tga"
                        texture{ finish  {reflection 1.0}}
                        }
                     }

Thanks!  Jason


Post a reply to this message

From: Bob Hughes
Subject: Re: Multiple maps?
Date: 22 Jul 2000 15:32:39
Message: <3979f6d7@news.povray.org>
"Jason Miller" <jas### [at] pinheirotcimetnet> wrote in message
news:3979e539$1@news.povray.org...
| Is it possible to use multiple maps, each for a different aspect of the
| texture?

You might try using 'average' in a 'texture_map' which contains each of your
different maps as individual textures.

#declare Texture1=texture {pigment{image_map{tga "yourtga1.tga"}}}
#declare Texture2=texture {pigment{image_map{tga "yourtga2.tga"}}}
#declare Texture3=texture {pigment{image_map{tga "yourtga3.tga"}}}

texture {average texture_map {
 [1 Texture1]
 [1 Texture2]
 [1 Texture3]
}}


Post a reply to this message

From: Jason Miller
Subject: Re: Multiple maps?
Date: 22 Jul 2000 16:17:36
Message: <397a0160$1@news.povray.org>
Bob,
    Thats not exactly what I want to do.  What I have are a set of TGAs.
One describes the pigment color, another describes the reflection color,
etc.

I would like to map each of these tga's to their respective attribute.  As
in, map the reflection color TGA to the reflection color of the object.
Make sense?

Is this possible?

Jason


"Bob Hughes" <per### [at] aolcom?subject=PoV-News:> wrote in message
news:3979f6d7@news.povray.org...
> "Jason Miller" <jas### [at] pinheirotcimetnet> wrote in message
> news:3979e539$1@news.povray.org...
> | Is it possible to use multiple maps, each for a different aspect of the
> | texture?
>
> You might try using 'average' in a 'texture_map' which contains each of
your
> different maps as individual textures.
>
> #declare Texture1=texture {pigment{image_map{tga "yourtga1.tga"}}}
> #declare Texture2=texture {pigment{image_map{tga "yourtga2.tga"}}}
> #declare Texture3=texture {pigment{image_map{tga "yourtga3.tga"}}}
>
> texture {average texture_map {
>  [1 Texture1]
>  [1 Texture2]
>  [1 Texture3]
> }}
>
>
>


Post a reply to this message

From: Christoph Hormann
Subject: Re: Multiple maps?
Date: 22 Jul 2000 17:08:05
Message: <397A0D3D.9B6EFB86@schunter.etc.tu-bs.de>
Jason Miller wrote:
> 
> Bob,
>     Thats not exactly what I want to do.  What I have are a set of TGAs.
> One describes the pigment color, another describes the reflection color,
> etc.
> 
> I would like to map each of these tga's to their respective attribute.  As
> in, map the reflection color TGA to the reflection color of the object.
> Make sense?
> 
> Is this possible?
> 

IIRC, material map cannot be used in layered textures, thats also mentioned in
the docs.  Also "interpolate" does not mix the textures in the material_map.  

What you probably have to do is combine all your image-files to one and use this
as a material map and specify a complete texture for each color index in the
file.  

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Jason Miller
Subject: Re: Multiple maps?
Date: 22 Jul 2000 17:31:27
Message: <397a12af@news.povray.org>
Interpolate blends the colors when the ray does not hit exaclty whre a color
sample is stored in the image, thus it does not look blocky am I right?

I am not looking for blending here, or putting textures are certain parts of
the objects.  I want to be able to map different images to different types
of textuering.

For instance, you know how you can specify a reflection color?  I want to
specify this with an image map.  Just like a mpa you would use for a pigment
except for the fact that it would specify values to use for reflection.

Does htis make sense?

(This is how it works in Imagine.  You can specify an image map (or
procedural) for every single aspect of texturing).

Jason

It does
"Christoph Hormann" <Chr### [at] schunteretctu-bsde> wrote in
message news:397A0D3D.9B6EFB86@schunter.etc.tu-bs.de...
>
>
> Jason Miller wrote:
> >
> > Bob,
> >     Thats not exactly what I want to do.  What I have are a set of TGAs.
> > One describes the pigment color, another describes the reflection color,
> > etc.
> >
> > I would like to map each of these tga's to their respective attribute.
As
> > in, map the reflection color TGA to the reflection color of the object.
> > Make sense?
> >
> > Is this possible?
> >
>
> IIRC, material map cannot be used in layered textures, thats also
mentioned in
> the docs.  Also "interpolate" does not mix the textures in the
material_map.
>
> What you probably have to do is combine all your image-files to one and
use this
> as a material map and specify a complete texture for each color index in
the
> file.
>
> Christoph
>
> --
> Christoph Hormann <chr### [at] gmxde>
> Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Chris Huff
Subject: Re: Multiple maps?
Date: 22 Jul 2000 18:19:32
Message: <chrishuff-C684BF.17200922072000@news.povray.org>
In article <397a12af@news.povray.org>, "Jason Miller" 
<jas### [at] pinheirotcimetnet> wrote:

> (This is how it works in Imagine.  You can specify an image map (or
> procedural) for every single aspect of texturing).

The equivalent in POV-Ray would be to allow you to specify a pigment 
wherever a color is used. This would be possible to do, but at the cost 
of memory and a slight cost in speed for solid colors.

You might try a combination of texture_maps with the image_pattern in 
MegaPOV.

-- 
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

From: Bob Hughes
Subject: Re: Multiple maps?
Date: 22 Jul 2000 19:21:12
Message: <397a2c68@news.povray.org>
I'm not so sure this exact thing can be done, 'image_pattern' or not.
You can get the individual images into a texture but not a layered one
still, except for putting into a final 'texture_map' or once again image
pattern with texture map of the previous image patterns.
Well, maybe it can be done somehow.  You'll have to be the judge of that.
If some parts are to be discarded and other parts shown then it could be the
right thing.  Otherwise it will be a merging of all together.  Individual
finishes don't seem possible, the way I've tried it anyhow.
Sorry if I'm babbling nonsense.

Bob


Post a reply to this message

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