POV-Ray : Newsgroups : povray.tools.poser : PoseRay 3.8.2.387 problem(s) : PoseRay 3.8.2.387 problem(s) Server Time
18 Apr 2024 20:24:35 EDT (-0400)
  PoseRay 3.8.2.387 problem(s)  
From: Tim Cook
Date: 17 Jan 2005 07:38:15
Message: <41ebb1b7@news.povray.org>
1) Moray output creates an .inc with the object always declared as 
Poseray_scene_object, which precludes using multiple PoseRay-converted 
objects at the same time.

2) The 'email' button in PoseRay launches Outlook Express, even though 
it it not set as my default mail application (or even used at all).

3) The material files generated by PoseRay could be simplified by 
defining identical material properties such as skin pigment and 
referring to that definition in materials that use it, such that

#declare p_map1=pigment {image_map{jpeg "texmap.jpg" interpolate 2 
transmit all 0 filter all 0}  }
#declare p_map2=normal {bump_map{jpeg "bumpmap.jpg" interpolate 2 }}
#declare p_map3=pigment {image_map{jpeg "transmap.jpg" interpolate 2 }}

//==================================================
//Material definitions
#declare Material1a=
texture{pigment {color rgb <1,1,1> transmit 1}
         normal{p_map2 bump_size 1}
         finish{phong 0 phong_size 4 diffuse 0.6*1 ambient rgb <0,0,0> 
reflection{0}}}
#declare Material1b=
texture{pigment {color rgb <1,1,1> transmit 0}
         normal{p_map2 bump_size 1}
         finish{phong 0 phong_size 6.868523 diffuse 0.6*1 ambient rgb 
<0,0,0> reflection{0}}}
texture{pigment{p_map1}
         normal{p_map2 bump_size 1}
         finish{ phong 0 phong_size 6.868523 diffuse 0.6 ambient rgb 
<0,0,0> reflection{0}}}
#declare Material1=
texture{pigment_pattern{p_map3}
texture_map{[0 Material1a]
             [1 Material1b]
            }}
//==================================================
#declare Material2a=
texture{pigment {color rgb <1,1,1> transmit 1}
         normal{p_map2 bump_size 1}
         finish{phong 0 phong_size 4 diffuse 0.6*1 ambient rgb <0,0,0> 
reflection{0}}}
#declare Material2b=
texture{pigment {color rgb <1,1,1> transmit 0}
         normal{p_map2 bump_size 1}
         finish{phong 0 phong_size 6.868523 diffuse 0.6*1 ambient rgb 
<0,0,0> reflection{0}}}
texture{pigment{p_map1}
         normal{p_map2 bump_size 1}
         finish{ phong 0 phong_size 6.868523 diffuse 0.6 ambient rgb 
<0,0,0> reflection{0}}}
#declare Material2=
texture{pigment_pattern{p_map3}
texture_map{[0 Material2a]
             [1 Material2b]
            }}

would be

#declare p_map1=pigment{image_map{jpeg "texmap.jpg"   interpolate 2}}
#declare p_map2=normal {bump_map {jpeg "bumpmap.jpg"  interpolate 2}}
#declare p_map3=pigment{image_map{jpeg "transmap.jpg" interpolate 2}}
#declare pigment1=texture{pigment{color rgbt 1}}
#declare pigment2=texture{pigment{color rgb  1}}
#declare normal1=normal{p_map2 bump_size 1}
#declare finish1=finish{phong 0 diffuse 0.6 ambient 0 reflection{0}}
//==================================================
//Material definitions
#declare Material1a=texture{pigment{pigment1} normal{normal1} 
finish{finish1}}
#declare Material1b=texture{pigment{pigment2} normal{normal1} 
finish{finish1}} texture{pigment{p_map1} normal{normal1} finish{finish1}}
#declare Material1 =texture{pigment_pattern{p_map3} texture_map{[0 
Material1a][1 Material1b]}}
//==================================================
#declare Material2a=texture{pigment{pigment1} normal{normal1} 
finish{finish1}}
#declare Material2b=texture{pigment{pigment2} normal{normal1} 
finish{finish1}} texture{pigment{p_map1} normal{normal1} finish{finish1}}
#declare Material2 =texture{pigment_pattern{p_map3} texture_map{[0 
Material2a][1 Material2b]}}

so if you wanted to change i.e. all the skin textures of a poser figure, 
you would only need to modify one value.

-- 
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

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