Author Topic: Blur shader or option  (Read 3606 times)

2018-04-03, 18:39:17

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
I like to build many things using shaders instead of textures.
Corona and even the native C4D material doesn't support Blur/offset of many procedurals and/or inside the layer shader.
I haven't gone through all (yet), but bitmaps don't seem to be affected.
This can be quite annoying, especially with displacements when you want to keep some details using the screen space divisions.

A blur shader, especially if it had a masking slot, could enable the creation of more complex materials.


A shader or option in a channel could do wonders...if that's not too much to ask for.

« Last Edit: 2018-04-03, 18:43:31 by Eddoron »

2018-04-10, 21:21:14
Reply #1

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
I just remembered that, a while ago, Octane introduced a filtering option for their displacement node.
Filter type(Box, Gauss) and filter radius.
That'd do the job and it would be helpful to smoothen LDR maps.
« Last Edit: 2018-04-11, 01:26:29 by Eddoron »

2018-04-13, 18:08:09
Reply #2

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
It seems that a high sample weathering shader(64 iterations here but more would be needed)) setup can smoothen the disps but it's terribly slow.

examples:
1. normal 2 passes, 13sec
2. weathering shader, 2 passes, 42 sec
« Last Edit: 2018-04-20, 02:03:19 by Eddoron »

2018-04-13, 20:12:53
Reply #3

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
While we're at it, here some more ideas for the displacement. Might require some core work but nonetheless, I think they're worth considering.

-Per-material choice of screen-space or scene-unit-dsp +values.

-Scene unit (cm) displacement is not adaptive like the screen space displacement. Anything out of frustum could be decreased to save memory. The number of units should be changeable in a cascade box, opening when scene-unit-dsp is chosen.

-Auto bump/Auto normal (quite obvious), Parallax Mapping (with silhouettes) would be cool .

-Something unusual: Focus picked area for higher divisions(a fall-off would be good)/ decreasing the subdivisions of areas out-of-focus. User-driven, of course. Together with auto-bump, this could work very well and also allow fancy animations.

-GPU tessellation: Possible with an SDS object in versions that support open-subdiv. The limit is usually 64 steps but often more than enough for certain things(Some applications allow much higher amounts, though I'm not exactly sure how they work).
So, let the GPU handle the subdivisions and be one step closer towards being a hybrid.
« Last Edit: 2018-04-15, 00:50:23 by Eddoron »