RenderMan & RISpec >> point-based color-bleeding in 3delight?

by wildyuriy » Tue, 19 Aug 2008 05:27:31 GMT

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 :)

RenderMan & RISpec >> point-based color-bleeding in 3delight?

by aghilesk » Mon, 08 Sep 2008 11:27:32 GMT


Hello,


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

Similar Threads

1. ANN: 3Delight 9.0 and 3Delight For Maya 5.0 - RenderMan & RISpec

2. Help for Point-Based Rendering!

Hi everybody!
I am studying Point-Based Rendering algorithms now.And I read the
papers about QSplat and Surfels. I want to write a demo to display
these technic.I have already found the source code of QSplat
implement.But I cannot find a similar one for Surfels. As  I'm a
newbie in CG,It is very diffuclt for me to implement the whole
algorithm (the Surfels).Can anybody tell me where I can find the
source code of Surfels for reference!

3. proportional resizing based on a new point

4. IBL(HDRI)illumination on Point Cloud BSSRDF and depth based

Is it better to use bent normals in compositing to add a HDR
illumination on SSS or it is better during shading.What is the most
common way of affecting the absorbtion,colors and brightness of the SSS
with HDR in shading and will ambient occlusion kill the softness of SSS.

5. Displaying different colored units in tile-based game

6. Overwriting color in graph based on value of a string

Hi,

I have a script which creates a basic columnstacked histogram:

set grid nopolar
set boxwidth 0.9 relative
set style data histograms
set style histogram columnstacked
set style fill solid 1.0 border -1
plot 'testArray.dat' using 1, '' using 3, '' using 5


 which creates a stacked histogram from a data file:


15.00   YES  03.00  NO    06.00  YES
14.00   YES  05.00  NO    02.00   NO
03.00   YES  02.00 YES   01.00   YES


This works. However I want the color of each box to depend on the
value of the string in the next column and not which row it came from.
i.e:
I want the color of the box for 15.00 (row 0 col 0) to be green
because the next col (row0 col)1 is "YES".
and I want the color of the box for 03.00 (row0 col1) to be red
because the next col (row0 col3) is "NO".

Does anyone know is there anyway to overwrite the color settings for
this??

Thanks so much,
Marie

7. Changing text color based on underlying layer

8. PNG Images color changes based on application

Hello,

I have some PNG images that display differently based on what
application you open it with.  I currently am using MS Paint and
Windows Picture and Fax Viewer.  The png file looks different in both
applications.  Can someone tell me why?

Thanks.