Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results forย 
Showย ย onlyย  | Search instead forย 
Did you mean:ย 

Converting 3dMax OSL shader to Maya

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
536 Views, 7 Replies

Converting 3dMax OSL shader to Maya

Hi everybody,


I'm trying to build a crosshatch look to my renders using Arnold.

I recently found this Arnold OSL shader for max by Lee Griggs:

https://arnold-rendering.com/2020/03/31/ramdombitmap-osl-by-zap-andersson/

I copied the code to an OSL node in Maya and it doesn't seem to work properly.


Basically, I'm looking for a way to scatter a bunch of sketch textures at random positions and rotations on a surface and drive their color with a lambert utility node.

Having an alpha calculated for each texture is cool but even a multiplication operation will do the trick for me.


I would appreciate any advice ๐Ÿ™‚

Thanks!

Nimrod

Tags (1)
Labels (1)
  • OSL
7 REPLIES 7
Message 2 of 8
lee_griggs
in reply to: Anonymous

Did you try this?

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 3 of 8
joie
in reply to: lee_griggs

Sorry, but that youtube link was removed. Any other suggestion?

Message 4 of 8
lee_griggs
in reply to: joie

https://www.youtube.com/watch?v=h1ue5qJAjXI

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 5 of 8
Anonymous
in reply to: Anonymous

Thanks so much for answering!

I saw that tutorial but that's not quite the effect I'm looking for.

There's a c4d hatch shader that gets the work done but it doesn't calculate bounce lights and is generally kind of limited to 1-2 light sources before it breaks.

https://www.youtube.com/watch?v=y8tq0tDh7mU&t=618s&ab_channel=Cinema4DbyMaxon

Also, there's this guy:

https://www.youtube.com/watch?v=UfKJ14eF7Ok&ab_channel=ZenoPelgrims

Who managed to get the effect with c++.


Figured there must be an easier way ๐Ÿ™‚


Thanks again,

Nimrod

Message 6 of 8
lee_griggs
in reply to: Anonymous

You could try the randombitmap.osl shader.

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 7 of 8
joie
in reply to: lee_griggs

Now it works, thanks

Message 8 of 8
lee_griggs
in reply to: joie

Did you try the randombitmap.osl shader?

Lee Griggs
Arnold rendering specialist
AUTODESK

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report