RenderMan & RISpec >> baking ss in 3delight

by AMDx64BT » Thu, 04 Jun 2009 19:29:33 GMT

I am usign this shader to try to bake the subsurface:

volume ptc_bake2(
string ptc_file = "default.ptc";
string ptc_coordsys = "world";
)
{
uniform string raytype = "unknown";
rayinfo("type",raytype);

normal Nf = faceforward( normalize(N), I );

if(raytype != "subsurface")
{
bake3d(ptc_file,"",P,Nf,"coordsystem",ptc_coordsys,
"_sss",Ci,"radiusscale",1.5,"interpolate",1);
}
}

I am not sure if this bake shader is correct.

If it is correct I need to write another shader to render the baked
file with the subsurface shadeop. But I am getting errors:

surface ptc_subsurface(
float Ks = .7, Kd = .6, Ka = .1, roughness = .04;
string ptc_file = "default.ptc";
float biasValue = 0.1;
float clampValue = 0;
string hitsidesValue = "both";
float samplebaseValue = 1;
float maxdistValue = 0;
float maxsolidangleValue = 0.5; )
{
normal Nn = normalize(N);
normal Nf = faceforward(Nn, I);
vector V = normalize(-I);

uniform string raytype = "unknown";

rayinfo( "type", raytype );

if( raytype == "subsurface" )
{
Ci = Ka*ambient() + Kd*diffuse(Nn);
}
else
{

Ci = 1 - subsurface( P,
"filename", ptc_file, "pointbased", 1,
"bias", biasValue, "clamp", clampValue, "hitsides", "both",
"samplebase", 1 ,
"maxdist", maxdistValue, "maxsolidangle", maxsolidangleValue ) + Ks
* specular(Nf, V, roughness);
}
}

Similar Threads

1. Baking problem with 3delight - RenderMan & RISpec

2. ANN: 3Delight 9.0 and 3Delight For Maya 5.0

Hello everyone,

3Delight 9.0.0 and 3Delight For Maya 5.0 are available for download.
Here is a list of the most important improvements:

New Unlimited-threads License
  * A new unlimited-threads license is now available for both the
    3Delight standalone renderer and the 3Delight for Maya plug-in.
    Clients that purchased the 8-thread license (and under yearly
    support) are automatically upgraded to unlimited-threads. The
    8-thread license will no longer be available, but the 4-threads
and
    2-threads will continue to be available at a reduced pricing.

3Delight For Maya
  * Introducing RIB Fragments: a user-friendly and flexible way of
    creating and managing RIB archives. This feature is useful to
    accelerate re-renders.
  * The display drivers UI has been improved and simplified making it
    easier to manage and visualize output variables (AOVs). "Primary
    Displays" and "Secondary Displays" have been collapsed into the
    same UI.
  * Major performance improvements to the 3Delight Relationship Editor
    which make it responsive even with very large scenes.
  * Improved UI in the 3Delight Relationship Editor by using
    distinctive icons for different shaders and attributes.
  * Added support for many useful Hypershade nodes, most importantly:
    misss shaders, car paint, metallic paint, glossy reflection and
    glossy refraction.
  * Scene parsing optimizations reduce RIB output time by 20%.
  * It is now possible to render Shave and a Haircut nodes without
    loading the 3dfmShave plug-in: 3Delight for Maya automatically
uses
    Shave plug-in's RIB export function in that case.
  * Maya sprite particles can now be rendered as "volumes" for correct
    shadowing.
  * Maya fluids implementation enters a beta stage. All current
    limitations are listed in the user's manual in the Rendering
    Guidelines chapter.
  * Added Maya 2010 support and dropped Maya 8.0 support.

3Delight Features
  * Introducing multi-camera rendering. This features enables the
    output of many camera views from a single render. This
    functionality is especially useful for stereo rendering as it
saves
    rendering time.
  * Improvements to point-based occlusion quality: concave corners are
    rendered more accurately.
  * The subsurface shadeop can proceed from a point-cloud file. This
    can save a potentially costly pre-processing step when rendering
    sequences.
  * Billboard particles can now be rendered with a "thickness" for
    correct shadow casting.
  * Network caching, a feature unique to 3Delight, is now available on
    Windows systems.
  * Added detailed memory statistics to 3Delight to better track
memory
    usage.

3Delight Performance
  * Improved performance of occlusion() and indirectdiffuse() shadeops
    when rendering dense meshes. Speedups can reach 200%.
  * Improved multi-threading performance on scenes containing
    procedural geometry (such as delayed read archives). Procedurals
    are now allowed to execute in parallel which can lead to speed
    improvements linear to the number of threads used.
  * Accelerated point-based occlusion as it nows respected the
    "irradiance shadingrate". Speedups with default settings are in
the
    200%-300% range. Also improved quality of the occlusion in concave
    corners.
  * Improved multi-threading performance and memory consumption of
    subsurface scattering algorithm.
  * Improved deep shadow map creation performance. On large shadow
    maps, performance increases linearly with the number of cores.
    Temporary disk space usage during DSM creation has been reduced
    three-folds.
  * A new memory allocation scheme in the ray-tracer significantly
    lowers memory consumption when rendering object: only one object
    instance is kept in memory at any time. This feature is enabled
    through a special variable.
  * Improved point-cloud loading time. This has a positive performance
    impact on effects such as point-based occlusion and color
bleeding.

Shader Compiler
  * RSL 2.0 improvements including resizeable arrays, better supports
    for shader classes and more efficient execution.

Pipeline & API
  * Introducing the "VolumeTracer" API. This RSL plug-in allows user
to
    easily write volume renderers.
  * The "Sx" shader evaluation API is now embedded with the 3Delight
    library (takes a single 3Delight license when used).
  * Added "Implicit Field" plug-in support (extension to the
`RiBlobby'
    primitive).
  * Display drivers can now access 3Delight's deep frame buffer which
    provides the list of visible surfaces for each pixel sample.
  * Added new entries to the Ptc API and fixed compatibility issues.
  * `RiNuCurves' now support vertex normals.

Thank you,

-- aghiles
www.3delight.com

3. Hamilton Khaki Air Mens Chrono Quartz SS Watch #H74512833

4. Inserting portion of Excel 2000 SS in Word 2000

5. Computing Per-vertex color ("baking" lighting information)

6. Baking bumpmaps question.......

7. baking specular hl's and reflections?

8. Baking endomorphs?

How do I apply my morph so my model can be used as a transformed object?
Using LW 7.5 tried apply morph it increase size for some reason, also I'm
looking for the save transformed command to see if that will do it but it is
no longer in the save menu...??

Thanks