POV-Ray : Newsgroups : povray.general : "Whiten" an image_map? Server Time
23 Dec 2024 22:26:54 EST (-0500)
  "Whiten" an image_map? (Message 1 to 4 of 4)  
From: How Camp
Subject: "Whiten" an image_map?
Date: 3 Oct 2006 11:09:32
Message: <45227d2c$1@news.povray.org>
Maybe this is blindingly obvious, but I can't seem to see through the 
problem.  I've got an image_map applied to an object, but the colors are 
coming out too dim.  My 'white' isn't as white as I'd like.  So... how do I 
essentially set the image_map color range to be > 1?  Normally, with a solid 
pigment color, you'd just write:  pigment {color rgb <1,1,1>*3} or some 
such.  But how is this to be done with image_maps?


The code looks something like this:


#declare WhiteTex =
texture {
  pigment {
    image_map {
      jpeg "mywhitepic.jpg"
      map_type 1
    }
  }
}



#declare MyTransMat =
material {
  texture {
    image_pattern { jpeg "mytransparentmask.jpg" use_alpha map_type 1}
    texture_map {
      [0 WhiteTex ]
      [1 pigment { transmit 1 } ]
    }
  }
}



Er, am I being silly?

- How


Post a reply to this message

From: Hildur K 
Subject: Re: "Whiten" an image_map?
Date: 3 Oct 2006 11:35:01
Message: <web.45227e787249d82b2e3296b70@news.povray.org>
Er, am I being silly?



Not really :)

Have you tried specifying a finish? Povray gives every material a standard
finish of ambient 0.1, diffuse 0.6 if not specified. Try to increase these
settings according to your situation.

Note that ambient makes the material "glow" and may not look
realistic, especially in radiosity situation.

Diffuse controls how much light is reflected from the surface, can become to
bright in a situation where there is a bright light hitting the surface.

I usually use ambient 0.0 and diffuse 0.9-1.0 in a radiosity situation.


the ambient at default and try increase diffuse. Then again all this
depends on how you intend to use the material. If you want the glow effect
then increase ambient as well.

This goes for all sorts of materials, solid colors, patterns and bitmaps.

Hildur Kolbrun


Post a reply to this message

From: Bill Pragnell
Subject: Re: "Whiten" an image_map?
Date: 3 Oct 2006 11:40:00
Message: <web.4522836b7249d82b731f01d10@news.povray.org>
Try increasing the diffuse value in finish { }. The default is only 0.6.

Bill


Post a reply to this message

From: How Camp
Subject: Re: "Whiten" an image_map?
Date: 3 Oct 2006 12:08:40
Message: <45228b08$1@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> wrote in message 
news:web.4522836b7249d82b731f01d10@news.povray.org...
> Try increasing the diffuse value in finish { }. The default is only 0.6.


Excellent!  Thank you both (Bill and Hildur).  Somehow, all these years and 
I've missed the significance of the diffuse keyword.  Back to POV-Ray 101 
for me...

Thanks!

- How


Post a reply to this message

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