POV-Ray : Newsgroups : povray.binaries.images : I got an idea : Re: I got an idea Server Time
7 Aug 2024 23:22:23 EDT (-0400)
  Re: I got an idea  
From: Tim Cook
Date: 12 Jan 2006 14:56:39
Message: <43c6b477$1@news.povray.org>
fls13 wrote:
> Kozaburo does paint hilites into his textures, which I wish he wouldn't do.
> Would like to swap material settings on skin, eyes, etc. with those who use
> Poser figs in Pov-ray.

I don't really like the way PoseRay makes the material file, and all I 
did for this figure was rearrange and change formatting, and tweak some 
materials...as I prefer to have all the skin textures be identical, I 
#declare a texture for i.e. the body or head, then reference that for 
each material.  looks a lot nicer in the file instead of the massive 
clutter that gets output by default, defining each one separately, and 
with unnecessary levels of precision in the values for things...

for instance, from the texture file I have for the figure in the 
tenshi.jpg scene (though the eyes I could probably make the material 
definitions more compact...what's silly is the eye texture maps, 
separate for left and right, have a reflection, and they're just 
mirrored...so one eye is reflecting the opposite of the image map they 
used to make it, lol)

//==================================================
//Map definitions
#declare p_map1 =pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LarkynBody.jpg"        interpolate 2}}
#declare p_map2 =normal  {bump_map            {jpeg 
"C:\Data\3D\LarkynBodyB.jpg"       interpolate 2}}
#declare p_map3 =pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LarkynHead.jpg"        interpolate 2}}
#declare p_map4 =normal  {bump_map            {jpeg 
"C:\Data\3D\LarkynHeadB.jpg"       interpolate 2}}
#declare p_map5 =pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\A3Teeths.jpg"          interpolate 2}}
#declare p_map6 =pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LarkynEyeL.jpg"        interpolate 2}}
#declare p_map7 =pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LarkynEyeR.jpg"        interpolate 2}}
#declare p_map8 =pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LeatherJacketMAP.jpg"  interpolate 2}}
#declare p_map9 =normal  {bump_map            {jpeg 
"C:\Data\3D\LeatherJacketMAP.jpg"  interpolate 2}}
#declare p_map10=pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LeatherBaceMAP.jpg"    interpolate 2}}
#declare p_map11=normal  {bump_map            {jpeg 
"C:\Data\3D\LeatherBaceMAP.jpg"    interpolate 2}}
#declare p_map12=pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\short_bob_brown.jpg"   interpolate 2}}
#declare p_map13=pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\short_bob_trans_i.jpg" interpolate 2}}
#declare p_map14=pigment {uv_mapping image_map{jpeg 
"C:\Data\3D\LarkynLashes_i.jpg"    interpolate 2}}

//==================================================
//Material definitions
// Skin materials
// ...for the head
#declare TEX_HEAD      =texture{pigment{p_map3} normal{uv_mapping p_map4 
bump_size 1} finish{phong 0.06 phong_size 25 diffuse 0.6 ambient rgb 0}}
#declare SkinScalp_1_  =TEX_HEAD
#declare SkinHead_1_   =TEX_HEAD
#declare Lips_1_       =TEX_HEAD
#declare EyeSocket_1_  =TEX_HEAD
#declare InnerMouth_1_ =TEX_HEAD
#declare Nostrils_1_   =TEX_HEAD
#declare Lacrimal_1_   =TEX_HEAD
#declare Tongue_1_     =TEX_HEAD
// ...for the teeth and gums
#declare TEX_TTHGUM    =texture{pigment{p_map5} finish{phong 0.06 
phong_size 25 diffuse 0.6 ambient rgb 0}}
#declare Teeth_1_      =TEX_TTHGUM
#declare Gums_1_       =TEX_TTHGUM
// ...for the body
#declare TEX_BODY      =texture{pigment{p_map1} normal{uv_mapping p_map2 
bump_size 1} finish{phong 0.06 phong_size 25 diffuse 0.6 ambient rgb 0}}
#declare SkinNeck_1_   =TEX_BODY
#declare SkinTorso_1_  =TEX_BODY
#declare Nipples_1_    =TEX_BODY
#declare SkinArm_1_    =TEX_BODY
#declare SkinForearm_1_=TEX_BODY
#declare SkinHand_1_   =TEX_BODY
#declare Fingernails_1_=TEX_BODY
#declare SkinHip_1_    =TEX_BODY
#declare SkinThigh_1_  =TEX_BODY
#declare SkinKnee_1_   =TEX_BODY
#declare SkinShin_1_   =TEX_BODY
#declare SkinFeet_1_   =TEX_BODY
#declare Toenails_1_   =TEX_BODY
// Hair materials
#declare PubicHair_1_  =texture{pigment{color rgbt 1}}

#declare hair_1_1      =texture{pigment{p_map12} finish{diffuse 0.6 
ambient rgb 0}}
#declare hair_1_2      =texture{pigment{color rgbt 1}}
#declare hair_1_       =texture{pigment_pattern{p_map13} texture_map{[0 
hair_1_1][1 hair_1_2]}}

#declare Eyelashes_1_1 =texture{pigment{color rgb  <0.23,0.15,0.02>} 
finish{diffuse 0.6 ambient rgb 0}}
#declare Eyelashes_1_2 =texture{pigment{color rgbt 1}}
#declare Eyelashes_1_  =texture{pigment_pattern{p_map14} texture_map{[0 
Eyelashes_1_1][1 Eyelashes_1_2]}}

#declare Eyebrows_1_  =texture{pigment{color rgb <0.23,0.15,0.02>} 
finish{phong 0 phong_size 25 diffuse 0.6 ambient rgb 0}}
// Eye materials
#declare LCornea_1_    =texture{pigment{color rgbt 1} 
                     finish{phong 0.25 phong_size 37 diffuse 0.6 ambient 
rgb 0 reflection{0.5}}}
#declare LEyewhite_1_  =texture{pigment{p_map6} 
                     finish{phong 0.25 phong_size 37 diffuse 0.6 ambient 
rgb 0 reflection{0}}}
#declare LPupil_1_     =texture{pigment{p_map6} 
                     finish{phong 0    phong_size 44 diffuse 0.6 ambient 
rgb 0 reflection{0}}}
#declare LIris_1_      =texture{pigment{p_map6} 
                     finish{phong 0.50 phong_size 44 diffuse 0.6 ambient 
rgb 0 reflection{0}}}
#declare RCornea_1_    =texture{pigment{color rgbt 1} 
                     finish{phong 0.25 phong_size 37 diffuse 0.6 ambient 
rgb 0 reflection{0.5}}}
#declare REyewhite_1_  =texture{pigment{p_map7} 
                     finish{phong 0.25 phong_size 37 diffuse 0.6 ambient 
rgb 0 reflection{0}}}
#declare RPupil_1_     =texture{pigment{p_map7} 
                     finish{phong 0    phong_size 44 diffuse 0.6 ambient 
rgb 0 reflection{0}}}
#declare RIris_1_      =texture{pigment{p_map7} 
                     finish{phong 0.50 phong_size 44 diffuse 0.6 ambient 
rgb 0 reflection{0}}}
// Clothing materials
#declare skirt_1_      =texture{pigment{color rgb <0.8,0.2,0.3>} 
                       finish{phong 0.10 phong_size 15 diffuse 0.4 
ambient rgb 0}}
#declare hem_1_        =texture{pigment{color rgb <0.8,0.2,0.3>} 
                       finish{phong 0.10 phong_size 15 diffuse 0.4 
ambient rgb 0}}
#declare belt_1_       =texture{pigment{color rgb <0.8,0.8,0.8>} 
                       finish{phong 0.10 phong_size 15 diffuse 0.4 
ambient rgb 0}}
#declare Leather_2_    =texture{pigment{p_map8}        normal{uv_mapping 
p_map9  bump_size 1} finish{phong 1.00 phong_size 16 diffuse 0.3 ambient 
rgb 0}}
#declare Leather_3_    =texture{pigment{p_map10}       normal{uv_mapping 
p_map11 bump_size 1} finish{phong 1.00 phong_size 16 diffuse 0.6 ambient 
rgb 0}}
#declare Cloth_2_      =texture{pigment{color rgb <0.10,0.07,0.00>} 
                       finish{phong 0.10 phong_size 25 diffuse 0.6 
ambient rgb 0}}
#declare Metal_2_      =texture{pigment{color rgb <0.15,0.07,0.00>} 
finish{phong 1.00 phong_size 25 diffuse 0.6 ambient rgb 0 brilliance 6 
reflection{0.8}}}
#declare Silver_3_     =texture{pigment{color rgb <0.06,0.06,0.06>} 
finish{phong 1.00 phong_size 10 diffuse 0.6 ambient rgb 0 brilliance 6 
reflection{0.8}}}

-- 
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.