OSL Texture Nodes - Kuwahara Filter

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
foliumcr
Licensed Customer
Posts: 5
Joined: Sat Aug 05, 2023 12:24 am

Is it possible to create a "Kuwahara filter" node using OSL texture that forces the input to become "stylised", or has anyone made something similar? Looking for a quick and simple way to mimic a painterly style to match a character already in that style.
interelectronix
Licensed Customer
Posts: 86
Joined: Fri Sep 22, 2023 9:25 am

For Octane OSL, you can’t do Kuwahara filter directly inside a texture node because:
1. OSL in Octane doesn’t allow per-pixel access of neighboring texels dynamically via code (no mipmap/sample functions with varying UVs inside OSL).
2. OSL texture() only takes string filenames, not texture nodes passed as color.

This makes writing a working Kuwahara inside Octane OSL impossible unless Octane adds proper texel sampling access (as found in Blender’s OSL or Arnold’s OSL implementation).
Post Reply

Return to “General Discussion”