Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > RenderMan interface > point-based col...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 779 of 788
Post > Topic >>

point-based color-bleeding in 3delight?

by wildyuriy <wildyuriy@[EMAIL PROTECTED] > Aug 18, 2008 at 02:27 PM

hello all..I have a problem with point-based color-bleeding...
I create two shaders...first write "test.ptc" file:

surface ptc( string ptc_file="test.ptc";)
{
     normal Nf = faceforward(normalize(N),I);

bake3d(ptc_file, "", P, Nf,"coordsystem", "world", "interpolate", 1);

Ci=Cs;

}

and second read "test.ptc" for the use in a indirectdiffuse function:

surface ind_shader( color Kd = .5; string ptc_file = "";)
{
         normal Nf = faceforward(normalize(N),I);

     color Dif = diffuse(Nf)*Kd;

     color IndDif = indirectdiffuse(P,Nf,
0,"filename",ptc_file,"pointbased",1);


Ci = Dif + IndDif;

Oi = Os;
}

but after render...I don`t see any indirectdiffuse in the picture )))

where did I make an error? anybody help me :)
 




 2 Posts in Topic:
point-based color-bleeding in 3delight?
wildyuriy <wildyuriy@[  2008-08-18 14:27:31 
Re: point-based color-bleeding in 3delight?
aghilesk@[EMAIL PROTECTED  2008-09-07 20:27:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:02:50 CST 2008.