Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

point-based color-bleeding in 3delight?

32 views
Skip to first unread message

wildyuriy

unread,
Aug 18, 2008, 5:27:31 PM8/18/08
to
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 :)

aghi...@gmail.com

unread,
Sep 7, 2008, 11:27:32 PM9/7/08
to
Hello,

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

You have to bake a color in your point cloud, like this:

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

Ci=Cs;
bake3d(
ptc_file, "", P, Nf,"coordsystem", "world", "interpolate", 1,
"_radiosity", Ci );
}

-- aghiles

0 new messages