Author Topic: Ray Direction, Normals and OSL in Corona?  (Read 1644 times)

2024-07-03, 01:11:58

blauwfilms

  • Active Users
  • **
  • Posts: 40
    • View Profile
    • Blauw Films | Website
Hello guys,

I've been working on a project for which I need photorealistic fabrics that behave naturally under different light situations.
I'd love to use Chaos Corona for that :)

Raphael Rau (Silverwingvfx) made a tutorial a little while back on the use of OSL Shader to create a natural falloff on your fabric materials.

The tutorial covers two examples:
1. Without OSL: using a Ray Direction node in Octane (couldn't find a similar node for Corona) + Normal Direction node (not sure how I'd approach this either).
2. With the OSL approach

The image I've attached is the the material sample I'm working with.
It is currently using a simple fabric material with sheen and a standard normal map.

Would anyone know how to replicate the normal-based falloff effect in Corona?
Or if the OSL approach is doable within Corona?

All the best, Leo

2024-08-13, 15:52:08
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13707
  • Marcin
    • View Profile
In Corona, the Fresnel shader (the 3ds Max equivalent is "Falloff" but in C4D it works a bit differently) works like this out of the box. You may need to crank up the bump value to make it more prominent:

Update: for super realistic fabrics you may also want to use Corona Pattern - it can be used for repetitive geometry and comes with little performance impact - https://docs.chaos.com/display/CRC4D/Corona+Pattern
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-10-15, 20:29:31
Reply #2

blauwfilms

  • Active Users
  • **
  • Posts: 40
    • View Profile
    • Blauw Films | Website
@Maru Thanks a lot mate!
I'm just now seeing your reply. That's great information. Going to give that a try. Cheers