Results 1 to 6 of 6
  1. #1

    can a osl volume shader be made glossy ?

    can an osl based volume shader (a cloud alike shader) have a glossy surface ?.



  2. #2
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,733
    No...

    Volume shaders don't have a Normal option at each point in the volume.... You need to polygonize your volume data in some other way (i.e. cubesurfer)



  3. #3
    couldnt it be done with some math node to say if density > 0.0123 then bounce off light ?



  4. #4
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,733
    the problem is the normal direction.... you would need to sample the volume data, find the derivatives of the density, calculate the Normal based on the deivatives, and do it for every volume step, in every ray.....

    ATM that is not possible.. So making it a mesh is the only way.

    Also, in OSL or in Cycles alone, Volumes are only suposed to be rendered with Scattering, Absorbing and Emission shaders.



  5. #5
    okay, i hoped otherwise



  6. #6
    Volumes are only suposed to be rendered with Scattering, Absorbing and Emission shaders.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •