question

nimrod zaguri avatar image
nimrod zaguri asked ·

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

osl
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Lee Griggs avatar image
Lee Griggs answered ·

You could try the randombitmap.osl shader.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

nimrod zaguri avatar image
nimrod zaguri answered ·

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

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Lee Griggs avatar image
Lee Griggs answered ·

Did you try this?

4 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

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

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.