POV-Ray : Newsgroups : povray.general : Modifying an image_map color? : Modifying an image_map color? Server Time
30 Jul 2024 04:14:07 EDT (-0400)
  Modifying an image_map color?  
From: CShake
Date: 14 Oct 2009 12:27:51
Message: <4ad5fc07$1@news.povray.org>
I'm currently doing some rendering of game models by exporting through 
MilkShape, and while the basic textures work fine, I'm having some color 
issues. I've found that in the game itself, the same image can be loaded 
for multiple textures, then multiplied by a solid color to give it a 
different hue/brightness.

Is there any way to do this in povray, without having to manually edit 
the .tga files in gimp/photoshop? (I've converted them from .dds to 
.tga, but could use other formats if it would make it easier). The 
majority are multiplied by a <0.6,0.6,0.6> color which at first glance 
is the same as applying 'diffuse 0.6', except many textures also have 
ambient and this doesn't affect the color of that. Also, some have 
non-gray colors, which I can't do with a simple diffuse statement.

Thanks!
Cshake

An example of the textures generated by the exporter:
-----------------------------------------------------
#declare uvtexture_0 = texture{
   uv_mapping pigment{
     image_map{
       tga "hw_p2_fr1.tga"
       map_type 0
       interpolate 2
       transmit all 0.000000
     }
   }
   finish{
     ambient rgb <0.200000 0.200000 0.200000>
     specular 0.100000
     roughness 0.000781
   }
}


Post a reply to this message

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