Author Topic: Exterior windows OSL shader  (Read 20907 times)

2018-04-19, 12:37:12

Monkeybrother

  • Active Users
  • **
  • Posts: 232
    • View Profile
Hi. Anyone here proficient in OSL? Maybe someone could convert this to work with Corona?, it would be an incredible time saver. I tried myself, but no luck.
https://lesterbanks.com/2017/10/free-windowbox-shader-map-interiors/

2018-04-19, 19:45:13
Reply #1

danio1011

  • Active Users
  • **
  • Posts: 361
    • View Profile
That looks amazing and would be a huge help...

2018-04-19, 21:12:47
Reply #2

pokoy

  • Active Users
  • **
  • Posts: 1861
    • View Profile
Did you try in max 2019 and it doesn't work with Corona or is this a general request? If a request, have a look here, OSL shader for max 2019: http://forums.cgsociety.org/showthread.php?p=8390295#post8390295

2018-04-20, 07:25:01
Reply #3

Monkeybrother

  • Active Users
  • **
  • Posts: 232
    • View Profile
Did you try in max 2019 and it doesn't work with Corona or is this a general request? If a request, have a look here, OSL shader for max 2019: http://forums.cgsociety.org/showthread.php?p=8390295#post8390295

That's the one I tried, and linked to. It comes with versions for Blender, Arnold and VRay, but none of them do anything in Corona.

2018-04-20, 07:26:09
Reply #4

Monkeybrother

  • Active Users
  • **
  • Posts: 232
    • View Profile
That looks amazing and would be a huge help...

Yes, it would save so much work for exterior shots.

2018-04-20, 08:29:03
Reply #5

Philip kelly

  • Active Users
  • **
  • Posts: 513
    • View Profile
    • Sketchrender
would be very handy.
Dell Precision T7910

2018-05-03, 13:29:11
Reply #6

STHA

  • Active Users
  • **
  • Posts: 22
    • View Profile
Has anyone managed to use the OSL shaders in Max2019?.

It seems the compiled 2019 berconmaps keeps crashing , so I just managed to get the OSL noise working, but it only works in the displacement of corona mtl and not the bump?.

Sounds way too technical for me, even after watching Zaps tutorials.

Anyone have a solution it would be appreciated. Thanks.

2018-05-03, 13:43:54
Reply #7

pokoy

  • Active Users
  • **
  • Posts: 1861
    • View Profile
Check if you need to increase the bump amount. I remember OSL bump output was *very* weak for some reason, I thought it was fixed but maybe not.

Also, if you only need the noises form BerconMaps, try the free Siger Noise map, it's based on Bercon and gets actively updated/recompiled:
https://www.sigerstudio.eu/sigertexmaps-sigernoise/

2018-05-03, 14:07:47
Reply #8

STHA

  • Active Users
  • **
  • Posts: 22
    • View Profile
Yes, I tried pushing the bump to the maximum and it doesnt work. Strange.

I forgot about sigernoise, but currently it is only upto 2018. I guess I will have to wait once he has recompiled.

Thanks.

2018-05-03, 14:31:15
Reply #9

pokoy

  • Active Users
  • **
  • Posts: 1861
    • View Profile
Yes, I tried pushing the bump to the maximum and it doesnt work. Strange.

I forgot about sigernoise, but currently it is only upto 2018. I guess I will have to wait once he has recompiled.

Thanks.
I thought the 2019 were available already, sorry.

Can you save out a simple scene with the OSL noise where bump doesn't work? I'd like to inspect and have someone look at it.

2018-05-03, 15:01:46
Reply #10

STHA

  • Active Users
  • **
  • Posts: 22
    • View Profile
sorry, I deleted the file as it was just a test. I recreated it.

Scene is Just a sphere, with two lights.

Here are some screen grabs.
Max 2019
Corona 1.7 (4)


2018-05-03, 15:07:09
Reply #11

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8833
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Did you try to plug it trough CoronaBumpConverter map? Would that help?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-05-03, 15:45:58
Reply #12

STHA

  • Active Users
  • **
  • Posts: 22
    • View Profile
Yes, that seems to have solved the problem.

Thanks Romullus.

2018-05-03, 16:07:42
Reply #13

pokoy

  • Active Users
  • **
  • Posts: 1861
    • View Profile
Ok, some thoughts - I've tested all noises and they worked (in beta), only OSL bump output was very weak, not only for Corona but for all renderers. When I tested after 2019 release the bump output was stronger, so that was probably fixed.

In your case, the 3D OSL noise should work as this one works in object space - please test this one.

The OSL noise you're using is 2D, so you may have to define the mapping by connecting an OSL UVW node to the UVW slot of the 2D noise. See if that works without the BumpConverter.
Then again, OSL defaults to map channel 1 if no UVW input is defined so it should have worked since the sphere primitive defines UVs for channel 1 by default as well. So not sure why it didn't work for bump while it works for displacement... Still, try with a UVW node in the OSL noise UVW slot and see if that helps.

2018-05-03, 17:11:13
Reply #14

STHA

  • Active Users
  • **
  • Posts: 22
    • View Profile
No, it does not work.

I tried both Noise and Noise 3D. without bumpconvertor there is no reaction.

OSL - Named Coord Space reacts with displacement and so does UvWrowoffset when plugged in with Named Coord Space.

Thanks.