POV-Ray : Newsgroups : povray.tools.poser : Poseray 3.13.22: Problem with POV-Ray material export Server Time: 16 Dec 2018 22:53:55 GMT
  Poseray 3.13.22: Problem with POV-Ray material export (Message 1 to 7 of 7)  
From: Thomas de Groot
Subject: Poseray 3.13.22: Problem with POV-Ray material export
Date: 21 Jul 2014 12:12:59
Message: <53cd03cb$1@news.povray.org>
Something very wrong with exporting to POV-Ray. An object containing 
different image_maps, uv_mapped, and with transparency maps is exported 
with really /basic/ material settings, ignoring the details present in 
the original. Additionally, the transparency maps are /not/ exported. I 
don't konw about normal maps but I advice that should also be investigated.

/Al/l materials of the object have now the following appearance, which 
was not so with earlier versions of Poseray. Examples with first version 
3.13.22, followed by version 3.13.19 which gives the correct build for 
the same material:

//==================================================
#declare ZIS5ligh_=
#declare PR_DIFFUSE=pigment{p_map3}


#declare F1=finish{specular albedo 0.8980392 //Max highlight intensity: 
0 -> 1
                    roughness 0.1706121 //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
                 }
}

//==================================================
#declare ZIS5ligh_=
#declare PR_DIFFUSE=p_map4;
#declare F1=finish{specular albedo 0.8980392 //Max highlight intensity: 
0 -> 1
                    roughness 0.1706121 //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}
                      ]
                      }}
}
//==================================================

I agree with the suppression of all the redundant transformations but 
more is at issue here!

Thomas


Post a reply to this message

From: FlyerX
Subject: Re: Poseray 3.13.22: Problem with POV-Ray material export
Date: 21 Jul 2014 19:52:55
Message: <53cd6f97$1@news.povray.org>
On 7/21/2014 7:12 AM, Thomas de Groot wrote:
> Something very wrong with exporting to POV-Ray. An object containing
> different image_maps, uv_mapped, and with transparency maps is exported
> with really /basic/ material settings, ignoring the details present in
> the original. Additionally, the transparency maps are /not/ exported. I
> don't konw about normal maps but I advice that should also be investigated.
>
> /Al/l materials of the object have now the following appearance, which
> was not so with earlier versions of Poseray. Examples with first version
> 3.13.22, followed by version 3.13.19 which gives the correct build for
> the same material:
>
> //==================================================
> #declare ZIS5ligh_=
> #declare PR_DIFFUSE=pigment{p_map3}
>
>
> #declare F1=finish{specular albedo 0.8980392 //Max highlight intensity:
> 0 -> 1
>                     roughness 0.1706121 //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
>                  }
> }
>
> //==================================================
> #declare ZIS5ligh_=
> #declare PR_DIFFUSE=p_map4;
> #declare F1=finish{specular albedo 0.8980392 //Max highlight intensity:
> 0 -> 1
>                     roughness 0.1706121 //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}
>                       ]
>                       }}
> }
> //==================================================
>
> I agree with the suppression of all the redundant transformations but
> more is at issue here!
>
> Thomas

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?

FlyerX


Post a reply to this message

From: Thomas de Groot
Subject: Re: Poseray 3.13.22: Problem with POV-Ray material export
Date: 22 Jul 2014 07:20:31
Message: <53ce10bf$1@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?

 From the obj version of the object:

newmtl Lights
Ka 0.0980392 0.0980392 0.0980392
Kd 0.807843 0.807843 0.807843
Ks 0 0 0
Ns 1
map_Kd C:/Users/.../ZIS5_L_ZIS5NET.JPG

The same happened with the original 3ds version by the way.

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Poseray 3.13.22: Problem with POV-Ray material export
Date: 22 Jul 2014 07: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


 

From: Thomas de Groot
Subject: Re: Poseray 3.13.22: Problem with POV-Ray material export: SOLVED
Date: 22 Jul 2014 11:36:27
Message: <53ce4cbb$1@news.povray.org>
Found it!

In POV-Ray Output/Scene: Check the 'Use material transparency' box.

I overlooked that one!

Thomas


Post a reply to this message

From: FlyerX
Subject: Re: Poseray 3.13.22: Problem with POV-Ray material export: SOLVED
Date: 23 Jul 2014 00:35:14
Message: <53cf0342$1@news.povray.org>
On 7/22/2014 6:36 AM, Thomas de Groot wrote:
> Found it!
>
> In POV-Ray Output/Scene: Check the 'Use material transparency' box.
>
> I overlooked that one!
>
> Thomas

That is an option I added for quick test renderings. I added other 
options for quick test renders and a SSLT workaround for some DAZ Studio 
models. Anyway, I did find a critical bug in the partial POV-Ray code 
parsing, and the manual was incomplete so I uploaded a newer version.

https://sites.google.com/site/poseray/

FlyerX


Post a reply to this message

From: Thomas de Groot
Subject: Re: Poseray 3.13.22: Problem with POV-Ray material export: SOLVED
Date: 23 Jul 2014 07:41:22
Message: <53cf6722@news.povray.org>
On 23-7-2014 2:35, FlyerX wrote:
> On 7/22/2014 6:36 AM, Thomas de Groot wrote:
>> Found it!
>>
>> In POV-Ray Output/Scene: Check the 'Use material transparency' box.
>>
>> I overlooked that one!
>>
>> Thomas
>
> That is an option I added for quick test renderings. I added other
> options for quick test renders and a SSLT workaround for some DAZ Studio
> models. Anyway, I did find a critical bug in the partial POV-Ray code
> parsing, and the manual was incomplete so I uploaded a newer version.
>
> https://sites.google.com/site/poseray/

I noticed the incomplete manual too. Thanks for your fine work btw!

Thomas


Post a reply to this message

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