Announcement

Collapse
No announcement yet.

MDL: diffuse transmission renders black

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MDL: diffuse transmission renders black

    Hi,
    anyone have experience with the BSDFs in MDL? No matter how I try, I only get black results from df::diffuse_transmission_bsdf, doing the plastic example in the MDL handbook for instance

    example:
    Code:
    mdl 1.3;
    
    import df::*;
    
    export material test_diffuse ()
    = let { 
    	bsdf transmit_bsdf = df::diffuse_transmission_bsdf(tint: color(1.0, 1.0, 1.0));
    	material_surface mat = material_surface(
    		scattering: transmit_bsdf
    	);
    } in material(
    	thin_walled: true,
    	surface: mat
    );
    
    export material test_simple ()
    = let { 
    	bsdf transmit_bsdf = df::simple_glossy_bsdf(1.0, tint: color(1.0, 1.0, 1.0), mode: df::scatter_transmit);
    	material_surface mat = material_surface(
    		scattering: transmit_bsdf
    	);
    } in material(
    	thin_walled: true,
    	surface: mat
    );
    test_diffuse renders black, test_simple looks sss:y. Bug?

  • #2
    Diffuse transmission is not supported for the moment.
    Svetlozar Draganov | Senior Manager 3D Support | contact us
    Chaos & Enscape & Cylindo are now one!

    Comment


    • #3
      I see, thank you for the reply!
      Sounds like an MDL FAQ could be useful, with known unsupported stuff, I'm hitting a lot of them

      Comment


      • #4
        That's good idea, I'll make a note about it into our Docs-project.
        Svetlozar Draganov | Senior Manager 3D Support | contact us
        Chaos & Enscape & Cylindo are now one!

        Comment

        Working...
        X