OSL partial derivatives

OSL partial derivatives

brurpo
Advocate Advocate
1,005 Views
3 Replies
Message 1 of 4

OSL partial derivatives

brurpo
Advocate
Advocate

Hi there!

Is there any hope for us to be able to use Dx, Dy, etc with anything other the P (position)?

It would be really awesome!
Thanks!

0 Likes
1,006 Views
3 Replies
Replies (3)
Message 2 of 4

madsd
Advisor
Advisor

What would you like to do?


0 Likes
Message 3 of 4

brurpo
Advocate
Advocate

I am doing some NPR shaders. Ive done a realtime shader and was porting it to arnold.
I am, basically, doing a partial derivative of N dot V, modulated from camera distance, to do countors. Ive wanted to do the same with OSL for some reasons, for it to be closer to the viewport shader, to be able to better compose for the rest of the shader, and to get away of the contour filter (its really slow, and I have to cut my cpu threads to half, its even slower if I use all 64 threads).

0 Likes
Message 4 of 4

zenop
Advocate
Advocate

I also am interested in this.

0 Likes