POV-Ray : Newsgroups : povray.tools.poser : Poseray 3.13.22: Problem with POV-Ray material export : Re: Poseray 3.13.22: Problem with POV-Ray material export Server Time
19 Apr 2024 13:17:53 EDT (-0400)
  Re: Poseray 3.13.22: Problem with POV-Ray material export  
From: Thomas de Groot
Date: 22 Jul 2014 03:42:35
Message: <53ce15eb@news.povray.org>
On 21-7-2014 21:52, FlyerX wrote:

> It is working fine here. Maybe you have a material combination where
> PoseRay fails. Could you show me the entry in the mtl file for the above
> problem material?

Reconsidering the issue, I think the issue arises when exporting the 
materials to POV-Ray. Taking another material as an example, the 
screenshot below shows the material screen used. Export results in the 
following POV-Ray materials. For Poseray version 3.13.19:

//==================================================
#declare ZIS5503_=
#declare PR_DIFFUSE=pigment{pigment_multiply(p_map4,pigment{color srgb 
<0.70,0.70,0.70> })};
#declare F1=finish{specular albedo 0.8980392 //Max highlight intensity: 
0 -> 1
                    roughness 0.2401081 //surface roughness: 0.0005 -> 1
                    phong albedo 0 phong_size 0 //Phong specular disabled

                    emission srgb <0.10,0.10,0.10> //ambient RGB color: 
0->1 for each component
                    diffuse albedo 0.6
                    reflection{0 } conserve_energy //reflection amount: 
0 -> 1
                    }
material{
          texture{uv_mapping
                  pigment_pattern{p_map5 translate<0,0,0> scale<1,1,1> 
translate<0,0,0> rotate<0,0,0> translate<0,0,0> }
                  texture_map{
                      [0
                         pigment{color rgbft<0,0,0,1,1>}
                         finish{ambient 0}
                      ]
                      [1
                         pigment{PR_DIFFUSE translate<0,0,0> 
scale<1,1,1> translate<0,0,0> rotate<0,0,0> translate<0,0,0> }
                         finish{F1}
                      ]
                      }}
}
//==================================================

p_map4 and p_map5 being respectively the pigment and the transparency maps.

For Poseray version 3.13.22, the export looks like this:

//==================================================
#declare ZIS5503_=
#declare PR_DIFFUSE=pigment{p_map3}
#declare PR_DIFFUSE=pigment{pigment_multiply(PR_DIFFUSE,pigment{color 
srgb ((<0.70,0.70,0.70>-<1,1,1>)*1+<1,1,1>) })}


#declare F1=finish{specular albedo 0.8980392 //Max highlight intensity: 
0 -> 1
                    roughness 0.2401081 //surface roughness: 0.0005 -> 1
                    phong albedo 0 phong_size 0 //Phong specular disabled

                    ambient <0,0,0> emission srgb <0.10,0.10,0.10> 
//ambient RGB color: 0->1 for each component
                    diffuse albedo 0.6
                    reflection{0 } conserve_energy //reflection amount: 
0 -> 1
                    }


#declare T1=texture{
                    pigment{uv_mapping PR_DIFFUSE }
                             finish{F1}
                     }


material{
          texture{/*uv_mapping*/
                  T1
                 }
}
//==================================================

p_map3 is the pigment map but the transparency map is /not/ exported at all.

Thomas


Post a reply to this message


Attachments:
Download 'poseray_mat.jpg' (148 KB)

Preview of image 'poseray_mat.jpg'
poseray_mat.jpg


 

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