The file:

The output will look something like this (but in color): Steamboat-Willie (Mickey & the ship's wheel are cel objects, and the ship & grass are background objects)


Diffuse Frame: Instead of the "Value" node, I would like something that reads a custom property from the light(s) illuminating the object that tells it whether to illuminate the entire object (with shadows), or just illuminate the areas the rays are hitting.

specular.osl: Can I have the specular shader only reflect lights? (like Blender Internal specular)

Displacement: How can I add a slight displacement to the model on any frame it moves/deforms, to give it a sort of small inconsistency, like older cartoons?


Diffuse.osl: When I try to change the "DiffuseSmoothness" property, nothing happens. The line always stays sharp. Also, how can I add a "NormalMap" to the shader?

Specular.osl: I would also like the smoothness property to work & normalmap support, but I would like a specific NormalMap that always faces the direction of the specular reflection.


Finally, can freestyle line editor make an irregular line that looks like it was drawn with ink (cel objects) or pencil (background objects)? Not only this, but can the color of the line be based on certain material properties, such as reflection, transparency, & emission, with a color ramp defining which colors to map to the properties?

Sorry if that's a lot. I'm really new in the shading area of expertise. Thanks for any help! :)

  • $\begingroup$ Just for clarification, do you intend to implement this as GLSL shader or is it supposed to be a node-based material for Cycles or Eevee? $\endgroup$ – rjg Jul 23 at 21:42
  • $\begingroup$ @rjg It is supposed to be used as an OSL file, which will be accessed using the "Script" node. $\endgroup$ – chirpywiz711 Jul 24 at 23:43
  • $\begingroup$ That's not my area of expertise, but hopefully somebody in the community can help. $\endgroup$ – rjg Jul 25 at 8:53
  • $\begingroup$ @rjg Thanks anyways! $\endgroup$ – chirpywiz711 Jul 26 at 18:04
  • $\begingroup$ Hi. Could you provide the blend file using a site that does not need a registration? For instance using the classic blend-exchange.giantcowfilms.com $\endgroup$ – lemon Aug 25 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.